Repository navigation
Conversation
…immediately A freshly created session had no cached snapshot, so deriveSessionRenderModel reported "switching" while the first snapshot round trip ran and the composer disabled Run task. On Daytona that window is ~0.9 s and a click or Enter inside it was silently dropped with the draft intact. Seed the snapshot cache from the create response (stale, so the real fetch still runs as a background refresh).
…ad of wedging A prompt_async answered with 5xx/408 is an uncertain admission (#4635), but the hold it created could never end: the acceptance check treated absence as no evidence, Stop refused while the admission was unknown, and the failure body was dropped, so the person saw a paused composer with no explanation. - Keep the settled response body on PromptAdmissionUnknownError and show it as the session error card right away; the hold still prevents any resend. - readPromptAdmission: after the exact-message GET misses, list the idle conversation; when native lists it without the message the POST is settled and did not admit, so the drain receives admission_rejected and halts like any definite failure (explicit retry only, never an automatic resend). - On release the pending row is removed and the submitted composer is kept as an unsent message to restore; on confirmed acceptance the stale failure card is cleared.
Lexical keeps one empty paragraph in an empty editor, which innerText reports
as "\n". readComposerState now drops that trailing line break so draftText
matches what the person sees; user.see("composer", { text }) already trimmed.
…o e2e/new-session-route-after-reload
…ace-engine-upgrade Since #4577 the sidebar New session controls open the workspace's empty New task composer at once and the session is created by the first send, so waiting for a ses_ route on click never resolves. Re-express the three sidebar steps: the click lands on the empty New task route without a session surface and a prompt-ready composer; the send must land in a session no earlier turn used (same claim shape as bench-openwork-app-v1 in #4738). Palette steps still create their session up front.
The empty New task composer creates its session on submit and hands the prompt over through a scoped auto-send mark. The mark was keyed with the workspace's default endpoint URL (always /opencode), while the session surface under OpenCode v2 routing owns the session as /opencode2, so the lookup missed and the prompt silently vanished: the person landed on an empty new session. Key the mark with the endpoint that created the session (createRouteSessionWithEndpoint), which is the URL the surface will own it under.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (122201 ms), confidentiality-review (64018 ms), spec-provenance-review (122533 ms), desktop-den-sync-review (176264 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ce0193f66bfebde21a0ee3f70b8684d40400a68f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Deploying openwork with
|
| Latest commit: |
7522402
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://22e8fcc0.openwork.pages.dev |
| Branch Preview URL: | https://e2e-new-session-route-after.openwork.pages.dev |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (7522402647a1715c7bc693ed6baa218beb2f84f7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Resynced — merge commit
|
Now CONFLICTING again after dev
|
Closing as superseded by #4777 + #4869 (and #4757, now merged)Premise check (
After #4757 merged ( Proof at
|
Root cause
Triage:
reports/e2e-red-2026-09-09/triage.md→ Cluster 1,workspace-engine-upgradefollow-up from #4757 ("step 2 fails onnew session routeafter the reload — pre-existing since Sep 7, #4577").Two things, one per commit:
onCreateTaskInWorkspace) now open the workspace's empty New task composer immediately (#/workspace/<id>/session) and the session is created by the first send. Three steps ofworkspace-engine-upgradestill waited for ases_route on click; step 2 starts on that very route afterreload(), sohash !== previousRoute && includes("/session/ses_")could never resolve. Steps 4 and 5 carried the same stale claim but were never reached. The palette New session option still creates its session up front and was untouched.onCreateTaskWithPromptkeyed the handoff's auto-send mark withendpointForWorkspace(...).opencodeBaseUrl, which is always${mountedBaseUrl}/opencode(v1), whileSessionSurfacelooks the mark up withsessionOwnerbuilt from the URL it actually owns the session under —/opencode2when v2 routes chats. Keys never matched, sogetComposerAutoSendPayloadreturned null and the submitted prompt was dropped. v1 matched by coincidence, which is whyworkspace-new-task-hit-targetstayed green.What changed
evals/specs/workspace-engine-upgrade.e2e.test.ts:openEmptyNewTaskwaits for the empty New task route for the target workspace with no[data-session-surface-id]and a prompt-ready composer (composer+Run task);greetnow returns the session the send landed in and asserts it is one no earlier turn of the journey used (usedSessionIds, seeded with both fixture sessions) — the same "distinct new session per send" claim shape asbench-openwork-app-v1in fix(app)/test: list the injected bench provider model in the composer picker #4738. Step 4 performs itsopencode2200 /opencode404 ownership checks on that session; step 5 additionally asserts the v1 engine owns the session it created. No assertion loosened, no waits added; the 2 s "user row visible" bound is unchanged (the New task composer renders the pending row itself).apps/app/src/react-app/shell/route-workspaces.ts:createRouteSessionWithEndpointreturns the session and the resolved engine endpoint;createRouteSessiondelegates to it (other callers unchanged).apps/app/src/react-app/shell/session-route.tsx: the New task handoff keys its auto-send withsessionEndpoint.opencodeBaseUrl.This branch includes
origin/e2e/fresh-session-send-gate(#4757) merged in — step 2 is only reachable once step 1's immediate send passes. After #4757 lands the diff reduces to the two commits above (0ad717693,ce0193f66).Proof (Daytona, single spec,
OPENWORK_EVAL_REFpinned; the sandbox printedsource verified <sha>)Placement line:
{"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy",…,"passed":1,"failed":0,"skipped":0,"skips":[],"verdict":"passed"}pnpm evals:e2e workspace-engine-upgrade --daytona0ad717693(spec only)reload(): session error card "Session snapshot owner changed before the local read completed." and no transcript — see Noticed.0ad717693(spec only)ses_route 575 ms → reply never arrived; screenshot right after the route landed shows the new session empty. This is the product bug above.ce0193f66Run taskand survived the reload; both Daytona sandboxes deleted by the runner.Unit:
bun testonroute-session-list,task-create-engine-retry,workspace-routes(34 pass);pnpm --filter app typecheckclean.Warden final review at HEAD
ce0193f66vsorigin/dev7d5097d42(refs identical before/after):pnpm warden:checkexit 0, 4 triggers matched and completed (diff-security-review, confidentiality-review, spec-provenance-review, desktop-den-sync-review), no findings.Noticed, not touched
reload()on a v2 session,SessionSurfacemounts with the v1 URL (engineV2ChatRoutingstartsfalse), starts the snapshot read, the routing status then flips the URL →sessionOwnerchanges →composeNativeSessionSnapshotWithRetrythrows "Session snapshot owner changed before the local read completed."; the snapshot query is keyed only on (workspace, session) withretry: falseand nothing refetches on owner change, so the error card sticks with an empty transcript.draftScopeflipping whendenAuth.verifiedIdentityresolves is the same shape. Passed in runs 2–3 and in fix(app): keep a brand-new session sendable while its first snapshot loads #4757's run, so timing-dependent.workspaceEngineUpgradeworld:seed.workspace(app, primaryPath)withoutcreate: trueadopts the default "OpenWork Chat" workspace (the Streamline first launch and complete onboarding before desktop return #4608 trap fix(app)/test: list the injected bench provider model in the composer picker #4738 described), soworld.primaryis not theupgrade-primaryfolder. Harmless for this spec.