Repository navigation
fix(ui): make Cloud Worker startup responsive - #121200
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 9, 2026, 11:52 PM ET / August 10, 2026, 03:52 UTC. ClawSweeper reviewWhat this changesMoves Cloud Worker startup from the new-session page into an application-level coordinator, exposes durable placement progress in chat, and excludes Platform-only aliases from the ChatGPT model catalog. Merge readinessKeep open. Current main still waits for Cloud dispatch before navigation, and the PR’s owner-boundary direction is sound; however GitHub reports a dirty merge and the required direct Codex-client contract check is unavailable, so this is not ready for a landing verdict. Priority: P1 Review scores
Verification
How this fits togetherThe Control UI creates a durable session, asks the Gateway to provision a Cloud Worker, then sends the first prompt once ownership is active. The OpenAI plugin converts ChatGPT catalog rows into selectable model capabilities. flowchart LR
A[New session form] --> B[Durable session]
B --> C[Startup coordinator]
C --> D[Gateway placement]
D --> E[Chat progress and first send]
F[ChatGPT catalog] --> G[Route filtering]
G --> H[Model picker validation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +686, Tests +1175, Other +2. Total +1863 across 43 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Rebase onto current main, preserve its route-owned draft behavior, then validate the resolved head’s immediate navigation, per-session recovery, placement transitions, and catalog filtering against the matching Codex client source. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible for the UI defect: current main awaits Cloud startup before navigation. I did not run the browser scenario in this read-only review. Is this the best way to solve the issue? Unclear for merge readiness: the coordinator is the better owner boundary than a route-local continuation, but the dirty merge and unavailable direct Codex contract check must be resolved first. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 374007083a52. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review Both prior P1 lifecycle findings are addressed on the current head with blocked-chunk immediate-navigation and two-session same-scope ownership proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Both prior P1 lifecycle findings are addressed on the current head, with blocked-chunk immediate-navigation, two-session same-scope ownership, and final facade/Vite architecture proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
360faed to
9165413
Compare
|
@clawsweeper re-review Current head adds per-session v2 durable recovery, stale-client takeover, migration rollback, and exact-key cleanup. Immediate navigation and two-session ownership remain covered; exact-head local and AWS proof is recorded in the PR body. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review Current head only applies Oxfmt normalization to |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
* fix(openai): filter platform-only ChatGPT catalog rows * fix(ui): show Cloud Worker startup progress * fix(ui): keep cloud startup out of app bootstrap * fix(ui): reduce cloud startup bootstrap cost * fix(ui): satisfy cloud startup lint * fix(ui): keep cloud startup within UI limits * fix(ui): satisfy cloud startup CI limits * fix(ui): isolate concurrent cloud startup * fix(ui): address cloud startup review findings * fix(ui): persist cloud startup recovery per session * style(ui): format cloud startup chat props
No issue: this is a bounded maintainer-requested bug fix.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where users starting a Cloud Worker session could remain on an inert
/newpage throughout worker provisioning, with no durable progress and failures that could disappear with the route. It also fixes the user-reported live error where selecting GPT-5.6 High could be rejected as unsupported after ChatGPT catalog discovery admitted Platform-only alias rows with incorrect reasoning metadata.Why This Change Was Made
There were two owner-boundary failures:
gpt-5.6andchat-latestrows into the ChatGPT catalog. A bare row without reasoning metadata publishedreasoning: false, so generic validation correctly rejected High. Catalog admission now filters those Platform-only IDs while preserving the authoritative metadata of valid ChatGPT models.NewSessionPagesynchronously owned durable session creation, worker dispatch/provision/sync/start, first send, and navigation. The application-lifetime Cloud startup coordinator now owns continuation after durable session creation. The page navigates immediately, Gateway-owned durable placement transitions flow through coalescedsessions.changedevents, canonical requested/provisioning/syncing/starting/sending progress renders in the created session, and the initial message is sent only after active ownership. Runtime ownership is isolated per canonical session key, and framed v2 recovery records persist per session so reconnect and stale-client takeover cannot cancel or delete another session's work. Legacy migration rolls back safely if the replacement record cannot be committed.The rebase resolution also preserves the latest
mainroute-owned draft behavior, including destination-owned input, terminal startup, and worktree creation. This changes no config, protocol, generated baseline, or performance budget.User Impact
Cloud Worker startup now has an immediate visible destination and clear progress instead of appearing frozen. The accepted prompt survives route changes exactly once, send waits for active worker ownership, and terminal startup failures remain visible in the created session. Valid GPT-5.6 ChatGPT models retain their supported High reasoning capability.
Evidence
Synthetic after screenshot
The user-provided before screenshot was reproduced live but is omitted from this public PR because signed-in session/sidebar data could not be safely captured. The attached after screenshot is synthetic and contains only fixture identities.
Focused and browser proof
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/new-session-page.cloud-startup.e2e.test.ts ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts— 9 browser E2E tests passed.Static and build proof
pnpm build— passed, exit 0.pnpm plugin-sdk:api:check— passed with no API baseline change.pnpm tsgo:ui— passed.chat-pane-startup-subscriptions.tslifecycle owner and notice rendering split.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json ui/src/pages/new-session/new-session-page.test.ts ui/src/pages/new-session/new-session-page.ts— passed../node_modules/.bin/oxfmt --write ui/src/pages/new-session/new-session-page.ts ui/src/pages/new-session/new-session-page.test.ts— passed.git diff --check origin/main...HEAD— passed.modulePreloadoverride; the facade retains multicastSetlisteners with add/delete subscription cleanup.pnpm ui:buildmeasured 323,062 B gzip. The final AWS build measured 324,672 B against the current 325,632 B ceiling; this PR changes neither the baseline nor the budget.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 node scripts/check-changed.mjs --timedpassed all selected lanes during the trusted-source local fallback.Blacksmith Testbox was unavailable for that pre-PR remote verification because the Blacksmith CLI was not installed, so the documented trusted-source local fallback was used and recorded. The mandatory hosted exact-head CI/Testbox gate is still required before merge.
LOC metric
Production LOC:
+1999/-905(net+1094) | Tests:+2020/-270(net+1750). The positive production delta establishes the application-lifetime continuation owner, per-session runtime ownership, framed v2 durable recovery/migration, and Gateway transition reporting while replacing the route-owned startup/recovery path; file moves also inflate the gross counts.Remaining live gap
Live GPT-5.6 High remains to be checked after deployment. This PR does not claim deployed live verification.
AI-assisted: yes, using Codex. The final patch and behavior are understood, and no agent transcript is included.