Repository navigation
feat: OpenCode v2 engine lane — unified stack rebased on dev (supersedes #4247) - #4388
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
…ive provider mirroring
…with CDP-driven harness
…RK_BENCH_ENGINE=v2)
…rap cannot block the picker
…v2 chat routing is on
…ssions survive a workspace switch
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (6733c6788fdfc661d079e4d8df686da6e7ba0e0e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a4a7fa701f682a55f11285711acd22915ddb57e2). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (3f9f5aa6d7ef373b02ea5b0ae6f4150ab6ef73cc). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Final verificationCommit Six contextual screenshots below have no visual expectations and remain labeled unvalidated. Their journey verdicts come from the recorded DOM observations and probes; no requested visual judgment is pending. Test evidence — openwork-electron-v1-engine-completes-the-cdp-benchmark-with-faithful-witness-tr — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 7 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. Each cold v1 desktop reaches a ready composer from a fresh profile and workspace5 unique workspaces reached appInteractive, workspaceReady and composerReady. No profile or workspace was reused. ℹ️ ASSERTION — 2. Each cold v1 engine's first send completes after the untimed model selection5 first sends rendered exact user messages and the final token-20 witness nonce; completion ms=[2044,1947,1927,2155,2103]. No first send was incomplete. ℹ️ ASSERTION — 3. Every sidebar New task click reaches a distinct prompt-ready session5 New task clicks produced 5 distinct session ids with editable composers and visible Run task controls; ms=[196,184,170,189,201]. ℹ️ ASSERTION — 4. Every regular message renders the user turn, streams the witness reply, and completes5 fresh sessions rendered exact user messages and the final token-20 witness nonce with no incomplete reply; timings=[{"userRendered":1017,"firstToken":1069,"complete":1307},{"userRendered":1019,"firstToken":1019,"complete":1309},{"userRendered":1145,"firstToken":1196,"complete":1445},{"userRendered":1052,"firstToken":1052,"complete":1357},{"userRendered":1186,"firstToken":1242,"complete":1547}]. ℹ️ ASSERTION — 5. Cross-workspace sidebar switches restore the target transcript without leaking workspace B messages into A5 A→B and B→A switches restored their target session; B's marker was present in B and every B nonce was absent from A; timings=[{"aToB":249,"bToA":226},{"aToB":233,"bToA":205},{"aToB":221,"bToA":210},{"aToB":246,"bToA":213},{"aToB":255,"bToA":225}]. ℹ️ ASSERTION — 6. Every 200,000-character composer message survives insertion, render, provider transport, and completion5 exact-length user turns completed; witness requests with at least 200000 prompt characters=10; timings=[{"insertMs":107,"userRendered":929,"firstToken":929,"complete":1254},{"insertMs":93,"userRendered":1074,"firstToken":1125,"complete":1400},{"insertMs":88,"userRendered":1098,"firstToken":1150,"complete":1367},{"insertMs":98,"userRendered":1031,"firstToken":1083,"complete":1362},{"insertMs":95,"userRendered":1050,"firstToken":1106,"complete":1416}]. No long user turn was truncated. ℹ️ ASSERTION — 7. All v1 app completions use only the Bench Witness model and key32 completion requests all carried Bearer bench-key-app and model bench-model; mismatches=[]. No request escaped to another configured provider. Run: Test evidence — openwork-electron-v2-engine-completes-the-cdp-benchmark-with-faithful-witness-tr — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 9 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. Execution events without an engine-supplied directory are forwarded only after session ownership is verifiedReal workspace B prompts produced completion events with B's verified directory on B's authenticated stream; A's concurrent stream received no execution event. Both streams supplied conflicting directory hints. Warm and long replies completed within 10 seconds instead of waiting for reconciliation. ℹ️ ASSERTION — 2. Each cold v2 desktop reaches a ready composer from a fresh profile and workspace5 unique workspaces reached appInteractive, workspaceReady and composerReady. No profile or workspace was reused. ℹ️ ASSERTION — 3. Each cold v2 engine's first send completes after the untimed model selection5 first sends rendered exact user messages and the final token-20 witness nonce; completion ms=[606,615,607,615,621]. No first send was incomplete. ℹ️ ASSERTION — 4. Every sidebar New task click reaches a distinct prompt-ready session5 New task clicks produced 5 distinct session ids with editable composers and visible Run task controls; ms=[220,256,173,212,243]. ℹ️ ASSERTION — 5. Every regular message renders the user turn, streams the witness reply, and completes5 fresh sessions rendered exact user messages and the final token-20 witness nonce with no incomplete reply; timings=[{"userRendered":622,"firstToken":275,"complete":571},{"userRendered":601,"firstToken":229,"complete":601},{"userRendered":561,"firstToken":285,"complete":561},{"userRendered":605,"firstToken":234,"complete":554},{"userRendered":608,"firstToken":236,"complete":556}]. ℹ️ ASSERTION — 6. Cross-workspace sidebar switches restore the target transcript without leaking workspace B messages into A5 A→B and B→A switches restored their target session; B's marker was present in B and every B nonce was absent from A; timings=[{"aToB":226,"bToA":164},{"aToB":209,"bToA":112},{"aToB":208,"bToA":138},{"aToB":202,"bToA":116},{"aToB":212,"bToA":110}]. ℹ️ ASSERTION — 7. Every 200,000-character composer message survives insertion, render, provider transport, and completion5 exact-length user turns completed; witness requests with at least 200000 prompt characters=10; timings=[{"insertMs":95,"userRendered":669,"firstToken":332,"complete":609},{"insertMs":87,"userRendered":647,"firstToken":310,"complete":586},{"insertMs":89,"userRendered":620,"firstToken":272,"complete":559},{"insertMs":88,"userRendered":615,"firstToken":263,"complete":563},{"insertMs":92,"userRendered":618,"firstToken":359,"complete":618}]. No long user turn was truncated. ℹ️ ASSERTION — 8. All v2 app completions use only the Bench Witness model and key32 completion requests all carried Bearer bench-key-app and model bench-model; mismatches=[]. No request escaped to another configured provider. ℹ️ ASSERTION — 9. Routed v2 benchmark scenarios never create a session in the v1 engine6 workspace snapshots remained unchanged after their routed scenarios: [{"workspaceId":"ws_7684bef7eab7","before":1,"after":1},{"workspaceId":"ws_37690692b812","before":1,"after":1},{"workspaceId":"ws_977b62d70b63","before":1,"after":1},{"workspaceId":"ws_efc8a098e6d4","before":1,"after":1},{"workspaceId":"ws_22360b83d114","before":1,"after":1},{"workspaceId":"ws_79454a24299d","before":0,"after":0}]. Run: Test evidence — opencode-v2-injects-providers-at-runtime-without-an-engine-reload — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 8 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. an occupied port cannot impersonate the sidecar or receive its credentialA pre-bound fake healthy listener caused startup to reject; it received zero health requests. The normal boot below uses the child-announced OS-assigned port. ℹ️ ASSERTION — 2. server credentials do not cross the sidecar process boundaryThe live Linux sidecar retained PATH but contained none of the ten synthetic control-plane, provider, cloud, database, or arbitrary service credentials supplied through spawn options. Unknown environment keys were not inherited. ℹ️ ASSERTION — 3. C1 positive baseline and negative provider absenceThe cold-cache v2 engine listed models after 865ms while containing neither witness A nor witness B before injection. ℹ️ ASSERTION — 4. mirrored provider credentials are readable only by their ownerThe sidecar root, config directory, and provider file have no group or other-user permission bits after live provider injection. ℹ️ ASSERTION — 5. C2 positive hot injection and negative bounded-wait failureWitness A appeared through the watched config in 712ms, within the 15s bound and without a startup operation. ℹ️ ASSERTION — 6. C3 positive provider A execution and negative wrong-credential routingThe A session received the witness nonce, and the witness observed model A paired with only the expected Bearer key A assertion. ℹ️ ASSERTION — 7. C5 positive warm re-injection and negative clobbering or key leakageBoth providers remained listed; B produced the nonce with key B/model B, while no key A/model B request occurred. ℹ️ ASSERTION — 8. C4 positive same-process health and negative engine replacementHealth retained pid 77702, the child remained live, and stdout contained exactly one server-listening boot line after both injections. Run: Test evidence — benchmarks-opencode-v1-and-v2-engines-with-identical-client-sequences — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 2 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. v1 engine benchmark completion and witness fidelityv1 completed boot, API readiness, create, cold prompt, warm RTT, directory switch, 200k message, and compaction samples; every witness request used only Bearer bench-key-v1 with bench-model. ℹ️ ASSERTION — 2. v2 engine benchmark completion and witness fidelityv2 completed boot, API readiness, create, cold prompt, warm RTT, directory switch, 200k message, and compaction samples; every witness request used only Bearer bench-key-v2 with bench-model. Run: Test evidence — chat-routing-switches-live-between-opencode-v1-and-the-v2-preview-sidecar — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 4 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. R1 chat stays on v1 before the preview is enabledThe transcript streamed OPENWORK-V2-ROUTING-NONCE from witness-model-v1 with Bearer key-v1 in 2285ms; the v2 proxy returned 503 and no request used Bearer key-v2. ℹ️ ASSERTION — 2. R2 routed chat creates and streams through v2 without touching v1The provider mirrored in 5ms and its catalog warmed in 1017ms without restarting pid 78926; the v2 transcript streamed OPENWORK-V2-ROUTING-NONCE from witness-model-v2 with Bearer key-v2 in 256ms; v2 sessions grew 0→1, while v1 stayed frozen at 2. ℹ️ ASSERTION — 3. R3 routing chat does not restart the v2 sidecarThe routed send completed while the sidecar remained running at pid 78926; no replacement pid appeared. ℹ️ ASSERTION — 4. R4 choosing OpenCode v1 returns new chat to v1 and stops the sidecarAfter choosing v1, the transcript streamed OPENWORK-V2-ROUTING-NONCE from witness-model-v1 with Bearer key-v1 in 1187ms; the sidecar reported enabled=false running=false and the v2 proxy was unavailable (v2 sessions had reached 1 while routed). Run: Test evidence — the-opencode-v2-engine-preview-flag-controls-a-hot-mirroring-parallel-sidecar — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 5 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. F1 the preview defaults off without a sidecarThe server reported enabled=false and running=false with no pid, while Advanced Settings selected OpenCode v1. ℹ️ ASSERTION — 2. F2 enabling starts the parallel sidecar without replacing v1The UI showed a running OpenCode v2 sidecar at pid 79742, while the existing server health endpoint continued returning 200. ℹ️ ASSERTION — 3. F3 private sidecar configuration never exposes mirrored provider credentialsAuthenticated reads of the config endpoint, trailing-slash form, and encoded form returned 403 without the synthetic provider key, while the catalog still exposed the witness model. ℹ️ ASSERTION — 4. F3 provider changes hot-mirror without restarting the sidecarThe witness provider mirrored after 3ms and its model appeared in the catalog after 1008ms, the invalid provider was skipped and never mirrored, and the sidecar remained running at pid 79742. ℹ️ ASSERTION — 5. F4 disabling stops the sidecar without a zombie restartThe server remained disabled and not running with no pid after a two-second settling period, and the UI returned to OpenCode v1. Run: Test evidence — sessions-created-outside-the-window-appear-in-a-non-selected-workspace-s-sidebar — ✅ passedSHA 3f9f5aa · engine v2 ✅ passed · 4 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/workspace/apps/app) · [seed:raw] evalIn() ×5 ℹ️ ASSERTION — 1. workspace session list excludes another workspace's session at the server boundaryDirect authenticated v2 list responses include ses_f9070f7dfffecQ5fW3c2CtJ0ye only through its own workspace mount; the create request supplied a conflicting home-directory location. ℹ️ ASSERTION — 2. the server filters workspace event streams even when clients supply a conflicting directoryThe direct authenticated stream for the session's workspace received its creation event; the simultaneously open home-workspace stream did not contain its ID after the observation window. Both requests supplied the other directory as a query hint. ℹ️ ASSERTION — 3. workspace.reload_sessions surfaces a session created outside the window without selecting its workspaceSession ses_f9070f7dfffecQ5fW3c2CtJ0ye was absent for 2000ms, then appeared under server with its title after the reload, the selection stayed on app and its 0 session(s) were unchanged. ℹ️ ASSERTION — 4. Selecting a workspace refetches its session list and reveals sessions created outside the windowSession ses_f9070d162ffeWy7NciTOfppnDI was absent for 2000ms while app was selected, then appeared under server once it was selected; the earlier session ses_f9070f7dfffecQ5fW3c2CtJ0ye stayed listed and app's list was unchanged. Run: Test evidence — app-boots-with-a-control-route-and-meaningful-visible-content — ✅ passedSHA 3f9f5aa · engine v2 ✅ 1/1 screenshots passed · 2 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-app-smoke-1788578178210) ✅ PASS — 1. A ready OpenWork workspace composer with meaningful visible content is on screen
Run: Test evidence — chat-working-and-command-activity-use-quiet-shimmer-without-spinners — ✅ passedSHA 3f9f5aa · engine v2 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-chat-empty-1788578351239) · session("New task") · [seed:raw] evalIn() Run: Test evidence — unfinished-current-turn-tools-expose-active-waiting-and-unknown-outcomes — ✅ passedSHA 3f9f5aa · engine v2 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-unfinished-tool-lifecycle-1788580581145) · session("New task") · [seed:raw] evalIn() Run: Test evidence — a-tool-started-while-away-is-visible-after-returning-to-its-chat — ✅ passedSHA 3f9f5aa · engine v2 ✅ 0/1 screenshots passed · 1 assertion · 1 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. A tool that started while away is visible when the user returns to its chatThe first tool completed and tool call_LIVE-TOOL-SWITCH-mtnuq9rj-69877_2 started while workspace B chat ses_f9046fa40ffeGfnZLGP04nGVHz was visible; after returning to workspace A chat ses_f9046e449ffez02G5ye2JhApAT, scoped CDP found its visible row with text "Running 2 commands\nsleep 45 && printf '%s\n' 'DONE-LIVE-TOOL-SWITCH-mtnuq9rj-69877'". ⚪ UNVALIDATED — 2. a-tool-started-while-away-is-visible-after-returning-to-its-chat artifact 2
Run: Test evidence — same-workspace-and-cross-workspace-split-sessions-retain-visible-ownership — ✅ passedSHA 3f9f5aa · engine v2 ✅ 0/1 screenshots passed · 2 assertions · 2 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. Same-workspace split remains available and renders both sessions in their owning workspace{"layout":"split","primarySessionId":"ses_f904356e6ffegiFVVKQAzUav70","secondarySessionId":"ses_f90435114ffeP3vozbLAICvSkx","primaryLayoutWorkspaceId":"ws_d15642a18c82","secondaryLayoutWorkspaceId":"ws_d15642a18c82","primaryPaneWorkspaceId":"ws_d15642a18c82","secondaryPaneWorkspaceId":"ws_d15642a18c82","primarySurfaceWorkspaceId":"ws_d15642a18c82","secondarySurfaceWorkspaceId":"ws_d15642a18c82","primaryWorkspaceName":"openwork-cross-workspace-split-mtnuvfae-71488-a","secondaryWorkspaceName":"ws_d15642a18c82","primaryResourceWorkspaceId":"ws_d15642a18c82","secondaryResourceWorkspaceId":"ws_d15642a18c82","primaryOwnsSecondarySurface":false,"secondaryOwnsPrimarySurface":false,"primaryUnavailable":false,"secondaryUnavailable":false} ℹ️ ASSERTION — 2. The command palette renders two sessions from different workspaces with correct visible ownership{"layout":"split","primarySessionId":"ses_f904356e6ffegiFVVKQAzUav70","secondarySessionId":"ses_f904342f1ffe8nvTelUi93KU56","primaryLayoutWorkspaceId":"ws_d15642a18c82","secondaryLayoutWorkspaceId":"ws_96d2be237a68","primaryPaneWorkspaceId":"ws_d15642a18c82","secondaryPaneWorkspaceId":"ws_96d2be237a68","primarySurfaceWorkspaceId":"ws_d15642a18c82","secondarySurfaceWorkspaceId":"ws_96d2be237a68","primaryWorkspaceName":"openwork-cross-workspace-split-mtnuvfae-71488-a","secondaryWorkspaceName":"openwork-cross-workspace-split-mtnuvfae-71488-b","primaryResourceWorkspaceId":"ws_d15642a18c82","secondaryResourceWorkspaceId":"ws_96d2be237a68","primaryOwnsSecondarySurface":false,"secondaryOwnsPrimarySurface":false,"primaryUnavailable":false,"secondaryUnavailable":false} ⚪ UNVALIDATED — 3. same-workspace-and-cross-workspace-split-sessions-retain-visible-ownership artifact 3
Run: Test evidence — reloading-a-session-with-a-persisted-composer-draft-keeps-the-renderer-stable — ✅ passedSHA 3f9f5aa · engine v2 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-empty-session-1788581247444) · session("New task") Run: Test evidence — running-delegated-task-activity-uses-a-quiet-shimmer-without-a-spinner — ✅ passedSHA 3f9f5aa · engine v2 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-task-activity-shimmer-1788581357910) · session("New task") · [seed:raw] evalIn() Run: Test evidence — a-parent-task-surfaces-and-resolves-its-child-session-permission-request — ✅ passedSHA 3f9f5aa · engine v2 ✅ 0/1 screenshots passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-workspace-spec-1788581432023) · session("New task") · [seed:raw] evalIn() ⚪ UNVALIDATED — 1. a-parent-task-surfaces-and-resolves-its-child-session-permission-request artifact 1
Run: Test evidence — three-workspaces-keep-independent-live-tool-runs-through-exact-route-switching — ✅ passedSHA 3f9f5aa · engine v2 ✅ 4/4 screenshots passed · 8 assertions · 20 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. The workload begins with coherent Den auth, organization, and Connect stateauthTokenPresent=true; activeOrgId=org_01m1qwb2bzer7ag4cacm8xwp6p; Connect=available/true. ℹ️ ASSERTION — 2. All three originating workspaces reached a live slow tool concurrentlyws_790dd260ace9/ses_f9039c40fffeRdHsHpJGjgUtNk, ws_c7734f09c379/ses_f9039a5a7ffe1Msk2YqgBV6Qdn, ws_9360a5ffd950/ses_f90398471ffeh5fYjOX834N09T each exposed a pending or running shell sleep before route switching began; configured slow duration=120000ms. ✅ PASS — 3. The active workspace session visibly shows its deterministic workload prompt or marker
ℹ️ ASSERTION — 4. Repeated exact-session-route switching preserves every in-flight turn and Cloud identity84 exact route switches over 61503ms; live samples=[["ses_f9039c40fffeRdHsHpJGjgUtNk",28],["ses_f9039a5a7ffe1Msk2YqgBV6Qdn",28],["ses_f90398471ffeh5fYjOX834N09T",28]]; non-live=[]; auth drops=[]; org changes=[]; Connect failures=[]; reconnect/crash surfaces=[]. ℹ️ ASSERTION — 5. The route storm records the managed engine generation topologyBefore={"lifecycleState":"healthy","enginePid":86486,"engineRollover":false,"generations":[{"role":"primary","pid":86486,"port":38339}]}; after={"lifecycleState":"healthy","enginePid":86486,"engineRollover":false,"generations":[{"role":"primary","pid":86486,"port":38339}]}. ✅ PASS — 6. The session visibly shows the completed workload for workspace 1
ℹ️ ASSERTION — 7. Workspace 1 completed only its own six-step workload in its originating sessionOrigin=ws_790dd260ace9/ses_f9039c40fffeRdHsHpJGjgUtNk; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="COMPLETE-STORM-W1-mtnv8qfu-75833\nRun the deterministic active-session workload identified by STORM-W1-mtnv8qfu-75833. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.". ✅ PASS — 8. The session visibly shows the completed workload for workspace 2
ℹ️ ASSERTION — 9. Workspace 2 completed only its own six-step workload in its originating sessionOrigin=ws_c7734f09c379/ses_f9039a5a7ffe1Msk2YqgBV6Qdn; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="COMPLETE-STORM-W2-mtnv8qfu-75833\nRun the deterministic active-session workload identified by STORM-W2-mtnv8qfu-75833. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.". ✅ PASS — 10. The session visibly shows the completed workload for workspace 3
ℹ️ ASSERTION — 11. Workspace 3 completed only its own six-step workload in its originating sessionOrigin=ws_9360a5ffd950/ses_f90398471ffeh5fYjOX834N09T; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="COMPLETE-STORM-W3-mtnv8qfu-75833\nRun the deterministic active-session workload identified by STORM-W3-mtnv8qfu-75833. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.". ℹ️ ASSERTION — 12. Den auth, organization selection, and Connect remain coherent after every session completesFinal authTokenPresent=true; activeOrgId=org_01m1qwb2bzer7ag4cacm8xwp6p; Connect=available/true; all 3 workspaces reported ready, usable, connected Cloud MCP; search/execute tools were present in both engine and direct tools/list checks, with none missing. Run: Test evidence — sessions-created-outside-the-window-appear-in-a-non-selected-workspace-s-sidebar — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 3 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/workspace/apps/app) · [seed:raw] evalIn() ×5 ℹ️ ASSERTION — 1. workspace session list excludes another workspace's session at the server boundaryDirect authenticated v1 list responses include ses_f903673bdffeJHeXdK2WHePdY7 only through its own workspace mount. ℹ️ ASSERTION — 2. workspace.reload_sessions surfaces a session created outside the window without selecting its workspaceSession ses_f903673bdffeJHeXdK2WHePdY7 was absent for 2000ms, then appeared under server with its title after the reload, the selection stayed on app and its 1 session(s) were unchanged. ℹ️ ASSERTION — 3. Selecting a workspace refetches its session list and reveals sessions created outside the windowSession ses_f903657a5ffe0U98WCJb0A2hyr was absent for 2000ms while app was selected, then appeared under server once it was selected; the earlier session ses_f903673bdffeJHeXdK2WHePdY7 stayed listed and app's list was unchanged. Run: Test evidence — app-boots-with-a-control-route-and-meaningful-visible-content — ✅ passedSHA 3f9f5aa · engine v1 ✅ 1/1 screenshots passed · 2 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-app-smoke-1788581919990) ✅ PASS — 1. A ready OpenWork workspace composer with meaningful visible content is on screen
Run: Test evidence — chat-working-and-command-activity-use-quiet-shimmer-without-spinners — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-chat-empty-1788581981865) · session("New task") · [seed:raw] evalIn() Run: Test evidence — unfinished-current-turn-tools-expose-active-waiting-and-unknown-outcomes — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-unfinished-tool-lifecycle-1788582045121) · session("New task") · [seed:raw] evalIn() Run: Test evidence — a-tool-started-while-away-is-visible-after-returning-to-its-chat — ✅ passedSHA 3f9f5aa · engine v1 ✅ 0/1 screenshots passed · 1 assertion · 1 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. A tool that started while away is visible when the user returns to its chatThe first tool completed and tool call_LIVE-TOOL-SWITCH-mtnvlkmt-79161_2 started while workspace B chat ses_f90308695ffew8yYYB5otkMz65 was visible; after returning to workspace A chat ses_f90306bb2ffe30aHooatCe4RFJ, scoped CDP found its visible row with text "Running 2 commands\nsleep 45 && printf '%s\n' 'DONE-LIVE-TOOL-SWITCH-mtnvlkmt-79161'". ⚪ UNVALIDATED — 2. a-tool-started-while-away-is-visible-after-returning-to-its-chat artifact 2
Run: Test evidence — same-workspace-and-cross-workspace-split-sessions-retain-visible-ownership — ✅ passedSHA 3f9f5aa · engine v1 ✅ 0/1 screenshots passed · 2 assertions · 2 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. Same-workspace split remains available and renders both sessions in their owning workspace{"layout":"split","primarySessionId":"ses_f902ccda1ffebCGt9NZUgWqFk4","secondarySessionId":"ses_f902cc33cffeG63tqX6yBjMONK","primaryLayoutWorkspaceId":"ws_77f59277a8f8","secondaryLayoutWorkspaceId":"ws_77f59277a8f8","primaryPaneWorkspaceId":"ws_77f59277a8f8","secondaryPaneWorkspaceId":"ws_77f59277a8f8","primarySurfaceWorkspaceId":"ws_77f59277a8f8","secondarySurfaceWorkspaceId":"ws_77f59277a8f8","primaryWorkspaceName":"openwork-cross-workspace-split-mtnvr16z-80018-a","secondaryWorkspaceName":"ws_77f59277a8f8","primaryResourceWorkspaceId":"ws_77f59277a8f8","secondaryResourceWorkspaceId":"ws_77f59277a8f8","primaryOwnsSecondarySurface":false,"secondaryOwnsPrimarySurface":false,"primaryUnavailable":false,"secondaryUnavailable":false} ℹ️ ASSERTION — 2. The command palette renders two sessions from different workspaces with correct visible ownership{"layout":"split","primarySessionId":"ses_f902ccda1ffebCGt9NZUgWqFk4","secondarySessionId":"ses_f902cb204ffeUXQqvBUFgENTEp","primaryLayoutWorkspaceId":"ws_77f59277a8f8","secondaryLayoutWorkspaceId":"ws_936a1cd3be5d","primaryPaneWorkspaceId":"ws_77f59277a8f8","secondaryPaneWorkspaceId":"ws_936a1cd3be5d","primarySurfaceWorkspaceId":"ws_77f59277a8f8","secondarySurfaceWorkspaceId":"ws_936a1cd3be5d","primaryWorkspaceName":"openwork-cross-workspace-split-mtnvr16z-80018-a","secondaryWorkspaceName":"openwork-cross-workspace-split-mtnvr16z-80018-b","primaryResourceWorkspaceId":"ws_77f59277a8f8","secondaryResourceWorkspaceId":"ws_936a1cd3be5d","primaryOwnsSecondarySurface":false,"secondaryOwnsPrimarySurface":false,"primaryUnavailable":false,"secondaryUnavailable":false} ⚪ UNVALIDATED — 3. same-workspace-and-cross-workspace-split-sessions-retain-visible-ownership artifact 3
Run: Test evidence — reloading-a-session-with-a-persisted-composer-draft-keeps-the-renderer-stable — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-empty-session-1788582527660) · session("New task") Run: Test evidence — running-delegated-task-activity-uses-a-quiet-shimmer-without-a-spinner — ✅ passedSHA 3f9f5aa · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-task-activity-shimmer-1788582616375) · session("New task") · [seed:raw] evalIn() Run: Test evidence — a-parent-task-surfaces-and-resolves-its-child-session-permission-request — ✅ passedSHA 3f9f5aa · engine v1 ✅ 0/1 screenshots passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-workspace-spec-1788582684693) · session("New task") · [seed:raw] evalIn() ⚪ UNVALIDATED — 1. a-parent-task-surfaces-and-resolves-its-child-session-permission-request artifact 1
Run: Test evidence — three-workspaces-keep-independent-live-tool-runs-through-exact-route-switching — ✅ passedSHA 3f9f5aa · engine v1 ✅ 4/4 screenshots passed · 8 assertions · 20 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. The workload begins with coherent Den auth, organization, and Connect stateauthTokenPresent=true; activeOrgId=org_01m1qxh29yekm964wz3gkrwap7; Connect=available/true. ℹ️ ASSERTION — 2. All three originating workspaces reached a live slow tool concurrentlyws_95359c980d6d/ses_f9026bf96ffegxEi1rR9k6xHp5, ws_1b470d77d56c/ses_f90269b40ffeVPAJtZZsEXHEqb, ws_6a691887c1af/ses_f9026762affe4adks4EJkMNw7v each exposed a pending or running bash sleep before route switching began; configured slow duration=120000ms. ✅ PASS — 3. The active workspace session visibly shows its deterministic workload prompt or marker
ℹ️ ASSERTION — 4. Repeated exact-session-route switching preserves every in-flight turn and Cloud identity36 exact route switches over 61290ms; live samples=[["ses_f9026bf96ffegxEi1rR9k6xHp5",12],["ses_f90269b40ffeVPAJtZZsEXHEqb",12],["ses_f9026762affe4adks4EJkMNw7v",12]]; non-live=[]; auth drops=[]; org changes=[]; Connect failures=[]; reconnect/crash surfaces=[]. ℹ️ ASSERTION — 5. The route storm records the managed engine generation topologyBefore={"lifecycleState":"healthy","enginePid":93389,"engineRollover":false,"generations":[{"role":"primary","pid":93389,"port":40287}]}; after={"lifecycleState":"healthy","enginePid":93389,"engineRollover":false,"generations":[{"role":"primary","pid":93389,"port":40287}]}. ✅ PASS — 6. The session visibly shows the completed workload for workspace 1
ℹ️ ASSERTION — 7. Workspace 1 completed only its own six-step workload in its originating sessionOrigin=ws_95359c980d6d/ses_f9026bf96ffegxEi1rR9k6xHp5; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="Run the deterministic active-session workload identified by STORM-W1-mtnvzgms-82059. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.\nCOMPLETE-STORM-W1-mtnvzgms-82059". ✅ PASS — 8. The session visibly shows the completed workload for workspace 2
ℹ️ ASSERTION — 9. Workspace 2 completed only its own six-step workload in its originating sessionOrigin=ws_1b470d77d56c/ses_f90269b40ffeVPAJtZZsEXHEqb; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="Run the deterministic active-session workload identified by STORM-W2-mtnvzgms-82059. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.\nCOMPLETE-STORM-W2-mtnvzgms-82059". ✅ PASS — 10. The session visibly shows the completed workload for workspace 3
ℹ️ ASSERTION — 11. Workspace 3 completed only its own six-step workload in its originating sessionOrigin=ws_6a691887c1af/ses_f9026762affe4adks4EJkMNw7v; all six shell steps completed; seven provider requests (six tool steps + final reply), each matched only its originating workload marker; wrong-workspace reads=[404,404]; transcript="Run the deterministic active-session workload identified by STORM-W3-mtnvzgms-82059. You may run its shell commands and create, append, and read its workspace file. Keep working through every step and report only when complete.\nCOMPLETE-STORM-W3-mtnvzgms-82059". ℹ️ ASSERTION — 12. Den auth, organization selection, and Connect remain coherent after every session completesFinal authTokenPresent=true; activeOrgId=org_01m1qxh29yekm964wz3gkrwap7; Connect=available/true; all 3 workspaces reported ready, usable, connected Cloud MCP; search/execute tools were present in both engine and direct tools/list checks, with none missing. Run: Test evidence — an-org-published-provider-s-desktop-sync-reaches-a-terminal-truthful-status — ✅ passedSHA 3f9f5aa · engine v2 ✅ 1/1 screenshots passed · 6 assertions · 8 expectations passed · 0 failed · 0 pending ℹ️ ASSERTION — 1. Both org-published providers reach a terminal per-provider sync outcome within 120sPublished ["lpr_01m1qxv4xeerpsp8sqse8g3nyw","lpr_01m1qxv59pexds9x5s5k14gny9"]; latest /cloud-provider-sync/status: {"hasSession":true,"lastRun":{"at":"2026-09-05T04:42:02.451Z","status":"applied","detail":{"fingerprintChanged":true,"providerStateChanged":true,"envUpserts":2,"envDeletes":0,"cleanupChanged":false,"cleanupRuntimeChanged":false,"fileChanged":false,"reloadDeferred":false}},"providers":[{"cloudProviderId":"lpr_01m1qxv4xeerpsp8sqse8g3nyw","providerId":"lpr_01m1qxv4xeerpsp8sqse8g3nyw","sourceProviderId":"sync-contract-custom-models","name":"Sync Contract Custom Models","source":"custom","updatedAt":"2026-09-05T04:39:47.374Z","modelIds":["sync-contract-custom-model"],"importedAt":1788583322451},{"cloudProviderId":"lpr_01m1qxv59pexds9x5s5k14gny9","providerId":"lpr_01m1qxv59pexds9x5s5k14gny9","sourceProviderId":"openai","name":"Sync Contract Catalog Models","source":"models_dev","updatedAt":"2026-09-05T04:39:47.766Z","modelIds":["gpt-5.4"],"importedAt":1788583322451}],"reloadPending":false,"skippedProviders":[]} ℹ️ ASSERTION — 2. Every provider the sync status lists contributes its model to the picker within 30sStatus-synced providers claim ["sync-contract-custom-model","gpt-5.4"]; engine picker ids: ["sync-contract-custom-model","big-pickle","ling-3.0-flash-fin-free","mimo-v2.5-free","muse-spark-1.2-contributor-free","muse-spark-1.3-contributor-free","nemotron-3-ultra-free","nemotron-3.5-lightning-free","gpt-5.4"] ℹ️ ASSERTION — 3. No provider is skipped or errored silently: failures carry a reason and drops are explainedDropped from status: []; lastRun: noop (no message); payload: {"hasSession":true,"lastRun":{"at":"2026-09-05T04:42:05.506Z","status":"noop","detail":{"fingerprintChanged":false,"providerStateChanged":false,"envUpserts":0,"envDeletes":0,"cleanupChanged":false,"cleanupRuntimeChanged":false,"fileChanged":false,"reloadDeferred":false}},"providers":[{"cloudProviderId":"lpr_01m1qxv4xeerpsp8sqse8g3nyw","providerId":"lpr_01m1qxv4xeerpsp8sqse8g3nyw","sourceProviderId":"sync-contract-custom-models","name":"Sync Contract Custom Models","source":"custom","updatedAt":"2026-09-05T04:39:47.374Z","modelIds":["sync-contract-custom-model"],"importedAt":1788583322451},{"cloudProviderId":"lpr_01m1qxv59pexds9x5s5k14gny9","providerId":"lpr_01m1qxv59pexds9x5s5k14gny9","sourceProviderId":"openai","name":"Sync Contract Catalog Models","source":"models_dev","updatedAt":"2026-09-05T04:39:47.766Z","modelIds":["gpt-5.4"],"importedAt":1788583322451}],"reloadPending":false,"skippedProviders":[]} ℹ️ ASSERTION — 4. The settled sync loop polls at its intended cadence instead of hammering /connect0 /v1/llm-providers/:llmProviderId/connect calls in a 60s window across 2 providers (bound 6 = 3/provider from the 5-minute cadence at apps/server/src/cloud-provider-sync.ts:132); window call timestamps: [] ✅ PASS — 5. The workspace settings cloud providers surface is visible
ℹ️ ASSERTION — 6. The cloud providers settings surface renders without crashingValidated at /workspace/ws_47b740db15ac/settings/cloud-providers: ok ℹ️ ASSERTION — 7. Den-published providers hot-mirror into the OpenCode v2 sidecar without restarting itbaseURL providers lpr_01m1qxv4xeerpsp8sqse8g3nyw and lpr_01m1qy2666efvsanvjv44fryfk mirrored with models sync-contract-custom-model and sync-contract-third-model; catalog provider lpr_01m1qxv59pexds9x5s5k14gny9 was skipped (no baseURL); third-provider latency=203100ms; sidecar stayed at pid 2323. Run: |

















Change
Adds an opt-in OpenCode v2 chat engine alongside v1. Advanced settings → Chat engine offers v1 (default) and v2 (preview). Local and Den-published provider changes reach the parallel sidecar without restarting it. Prompts return after admission; streamed text, tool activity, and permission requests use the existing chat UI.
Workspace switching retains the selected engine and direct session routes load from that engine. The server binds session creation to the workspace mount, checks session ownership, and filters session lists. The server filters event streams before delivery to any client, rejecting foreign events and resolving session ownership for execution events that omit their location; the renderer applies an additional workspace filter.
The sidecar installer verifies committed SHA512 pins for native archives without package lifecycle scripts. The child environment allowlists OS paths, locale, and CA configuration while excluding inherited server/provider/cloud credentials, provider files have owner-only permissions, and the private sidecar configuration endpoint is blocked at the client proxy. Startup uses an OS-assigned child port and waits for the spawned child’s listener announcement before sending credentials; health must report that child’s PID.
Verification
Verified commit:
3f9f5aa6d7ef373b02ea5b0ae6f4150ab6ef73cc.All runtime evidence is consolidated in the PR's test-evidence comment. The desktop suite used fresh app profiles; the first three checks provisioned fresh machines and the remaining seventeen used a prepared Daytona machine through the same
--daytonalane. Initial onboarding/install timeouts and a disk-exhaustion draft failure were not counted as passes; unchanged retries passed after environment recovery. No local fallback or skipped test is counted as proof.Reproduce desktop journeys with
OPENWORK_EVAL_ENGINE=v1orv2,OPENWORK_EVAL_REF=feat/opencode-v2-unified, andpnpm evals:e2e <journey> --daytona; the evidence names each run. The benchmarks ran inside the dedicated Daytona machine so the app and loopback witness were co-located.Desktop benchmark
Commit
3f9f5aa6d7ef373b02ea5b0ae6f4150ab6ef73cc. Five cycles per engine, run serially in the same dedicated Daytona sandbox (4 vCPU, 8 GiB; Linux x64; Node 25.6.0).A deterministic provider streams 20 chunks at 20 ms spacing (400 ms scheduled stream duration); DOM milestones are sampled every 50 ms. These measure app/engine overhead, not production model latency. Fresh dev-build composer readiness precedes v2 enablement; provider/model setup and deliberate 15.5-second routing waits are untimed. Cold provider/package download performance is not a warm-response claim. All sends completed; the full 200,000-character payload was checked, and transcript/event isolation and v1 session-count stability were asserted. V1 remains the default; v2 is opt-in preview.