Skip to content

fix: worker input waits safely during setup and workspace sync - #137576

Merged
jalehman merged 15 commits into
mainfrom
openclaw/improve-cloud-reconciliation-ux
Sep 9, 2026
Merged

jalehman merged 15 commits into
mainfrom
openclaw/improve-cloud-reconciliation-ux

Conversation

@jalehman

@jalehman jalehman commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #137539

What Problem This Solves

Fixes an issue where a follow-up submitted during healthy cloud workspace reconciliation could wait 15 seconds, appear interrupted, and show a red error even though reconciliation was still progressing. Users then had to copy and resend the message. The same input loss also affected initial worker setup: a message could be accepted while the workspace was syncing, then become interrupted instead of starting when setup completed.

Why This Change Was Made

The gateway now keeps the durable pending input admitted while the prior workspace-result claim settles, then re-reads the authoritative placement and continues the same run through the existing local, worker, or redispatch path. Initial setup now joins only the exact live dispatch or recovery producer and revalidates session incarnation, writer, runtime, and intended placement before admission. Browser input remains in durable custody until that writer is ready; neither local restart-admission path consumes it early. The Control UI presents setup and reconciliation as busy cloud lifecycles, shows durable receipt custody for the submitted follow-up, and reserves red errors for failed placement states.

User Impact

Users can submit input while an existing worker session is initially provisioning/preparing its workspace or completing normal workspace sync. Initial setup shows Received · waiting for worker setup; each input starts once after the intended placement becomes ready. Failed, abandoned, superseded, or orphan setup does not silently run on a different worker or locally. Unsent New Session drafts retain their separate startup flow. Stop, Move, and Restart keep the composer blocked until their lifecycle operation completes. The UI immediately shows Cloud · syncing files, explains that cloud edits are being applied safely, and displays Received · waiting for workspace sync for the held message. The exact submitted message starts automatically when reconciliation releases the claim, including after a placement reclaim or reconnect, without a parallel retry path or copy/resend step. If a Gateway restart leaves a durable result without a live turn claim, admission reports pending workspace recovery without spinning or discarding the result fence.

Evidence

CI repair follow-up

The original CI run 34286832067 tested this branch merged with upstream a5c83952639827a2694c17f57ceeb9dde9cdbeac. The branch now incorporates that exact tested baseline.

  • PR-owned: update the orphan-setup regression to assert the new live-dispatch-owner diagnostic while retaining the no-local-fallback and no-leaked-claim assertions.
  • PR-owned: register the new real-Gateway setup proof in both the independent test inventory/serial phase and the explicit CI command. This ensures CI actually runs the added proof.
  • Upstream baseline: update CLI-history redaction proof for the intentional imported-identity enrichment introduced by fix(gateway): retain CLI metadata after history dedupe #130494. Assert the complete redacted message and its three provenance fields, rather than obsolete object identity.
  • Focused proof: 50 tooling/Gateway tests passed; CLI-history Chromium and the registered real-Gateway setup E2E passed. All four-file changed gates and independent P0–P2 autoreview passed. No assertions, lint rules, timeouts, or baselines were relaxed.

Commands:

node scripts/run-vitest.mjs test/vitest-ui-e2e-config.test.ts test/scripts/ci-workflow-guards.test.ts src/gateway/worker-environments/worker-turn-launcher-reclaimed-placement.test.ts -t 'Control UI E2E resource ownership|complete real-Gateway command|worker turn launcher reclaimed placement'
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-cli-history-redaction.e2e.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/worker-initial-setup.real-gateway.e2e.test.ts
node scripts/check-changed.mjs --base f3029af1cc6395f997b38455fca168a03e8a98cf -- .github/workflows/ci.yml test/vitest-ui-e2e-config.test.ts src/gateway/worker-environments/worker-turn-launcher-reclaimed-placement.test.ts ui/src/e2e/chat-cli-history-redaction.e2e.test.ts

Initial worker setup extension

Published extension: a9ba4d2602449f7332431558bd6c0c5b332ac96a.

  • Two additional red/green authority regressions ensure revoked ingress or a closed admitted run cannot reach workspace IO after waiting.
  • Before the fix, both worker-turn and remote-exec setup regressions failed: input was rejected instead of held. The real browser proof separately reproduced input disappearing from custody before placement admission.
  • Isolated real Gateway + Chromium proof passed: submit through the composer while syncing; verify visible custody and no worker launch; submit through the actual sessions_send tool; verify two queued inputs; activate; verify two distinct run IDs launch once, custody empties, and both replies display.
  • Gateway, SQLite, input handlers, composer, and worker launcher are real. Worker transport/completions are synthetic; this is not a live Studio, cloud provider, or model test.
  • 779 focused lifecycle, browser-custody, local restart, composer, transcript, and send tests passed across 10 files (73 Gateway, 23 placement admission, 15 local restart, 668 UI). The final send-only rerun passed all 347 tests after narrowing history hydration to held worker setup input.
  • Fresh independent P0–P2 autoreview of the authority-safe production source: scoped-clean. A subsequent fixture-only correction makes its existing canonical transcript store path explicit; the real Gateway/browser proof passed again. All selected changed-file gates passed. The combined gate exposed the fixture type and lint issues above; after those mechanical fixes, formatting, changed-file lint, targeted type rechecks, and every remaining selected policy gate were completed separately. No lint rules or baselines were disabled or relaxed.

Reproduce the isolated proof with:

node scripts/run-vitest.mjs ui/src/e2e/worker-initial-setup.real-gateway.e2e.test.ts

Inspected Chromium captures from the final authority-safe source, using the isolated synthetic-worker fixture:

Input retained during setup Both inputs executed once
Browser input visibly held during worker setup Browser and tool inputs followed by their worker replies

Earlier post-turn reconciliation evidence

  • Review follow-up: 40 focused Gateway admission and Control UI composer/status tests passed, including new-run and same-run retries after restart clears claims with retained results and overlapping Stop, Move, and Restart. The new regression assertions failed on the pre-fix code. Fresh independent P0–P2 autoreview of the repair was clean.

  • Gateway admission and pending-input suites: 57 focused tests passed across placement storage, claim admission, claim closure, and durable browser input custody.

  • Control UI placement and pending-input suites: 56 focused tests passed.

  • Browser E2E: slow reconciliation receipt and elapsed status, automatic exact-message resume, receipt removal, and true failure rendering passed in Chromium after rebasing onto upstream main.

  • pnpm ui:build: passed within the enforced startup JavaScript budget.

  • pnpm check: preflight guards, production/test typechecks, lint, and policy guards passed after rebasing. The repository-wide format step reports 424 unchanged files already present on upstream main; all 17 files changed by this PR pass oxfmt --check and git diff --check.

  • Repository autoreview against rebased upstream main (P0/P1): no accepted or actionable findings after adding claim cleanup for workspace-path resolution failure and immediate handling for already-aborted unbounded waits.

  • Observed slow-sync state: enabled composer, Cloud · syncing files, Safely applying cloud edits · 2m 21s, and Received · waiting for workspace sync.

  • Observed resumed state: placement returns active, the custody receipt disappears, and the queued follow-up appears once with an automatic-start response.

  • Observed true-failure state: red reconciliation failure plus the existing restart action.

Inspected visual evidence

Captured from bd03e3cc226f794452488bce5396ab772914c3cf in Chromium with synthetic Gateway responses and public GPT-4o fixture metadata. These unaltered, inspected images verify Control UI presentation; they are not live cloud-execution proof. The browser test now correlates custody with the submitted idempotency key, emits the terminal lifecycle event, and asserts that the submitted message appears exactly once in both states.

Before reconciliation completes After reconciliation completes
Waiting: one submitted message, sync status, and durable receipt Resumed: one submitted message and no waiting receipt

True failure and restart capture · Reproduction command, scope, and image hashes

The capture-enabled browser test passed, as did scoped lint and fresh independent P0–P2 review of the fixture correction. The prior code repair passed all changed-file validation gates (the combined command reached its time limit after typechecks; the remaining policy checks were run separately and all passed).


View the OpenClaw team session

Reconciliation authority follow-up

The late review finding was reproduced: a queued remote-exec input could lose prepared-source or admitted-run authority without an aborted signal, then transfer attachment bytes and invoke execution after workspace reconciliation. Admission now rechecks the existing live run authority after waits and before/after workspace preparation, releasing any acquired claim on rejection.

Regression evidence uses the real placement store, run-authority lifecycle, managed media, and attachment staging commands against an isolated workspace; only the worker transport is synthetic. Revoked cases must leave no attachment files, perform no tunnel or workspace command, and retain an active placement with no claim. The authorized sibling transfers and reads the exact original bytes. This is final-effect boundary proof, not authenticated cloud-provider execution.

  • node scripts/run-vitest.mjs src/gateway/worker-environments/worker-turn-launcher-reconciliation-authority.test.ts src/gateway/worker-environments/worker-turn-launcher-initial-setup.test.ts src/gateway/worker-environments/worker-turn-launcher-claim-admission.test.ts — 37 tests passed.
  • The current-main conflict was resolved while preserving both caller-scope isolation and live admission authority checks.
  • Independent P0–P2 review and all applicable changed-file checks passed. The five original failing CI jobs passed on the preceding merge head; final-head CI is running again.

Final dispatch authority repair

The captured prepared-source/admitted-run assertion now reaches attachment, skill-resource, and node dispatch. New reads/writes require both live run authority and the exact placement claim; cleanup retains placement authority after run revocation. Attachment initialization retains its returned directory identity before observing revocation, so failure cleanup can remove only the created directory.

Final-effect regression coverage uses real admission/placement state, managed media, attachment commands, and isolated filesystem writes; only transport is synthetic. It is not authenticated cloud-provider proof.

Scenario Observed result
Source or admitted authority closes during tunnel setup or final dispatch Rejected; no command executed, no files, no local execution, claim released
Authority closes after attachment init or write Rejected; exact-directory cleanup executes, no files remain, claim released
Skill authority closes after init or write over SSH/node fixture Rejected; staged directory removed
Authorized sibling Original attachment bytes transferred and read back exactly

The four late-dispatch cases failed on the previous published head. Eight cleanup cases failed before separating cleanup authority. After repair, 141 tests across nine files passed and independent P0–P2 review was clean. The lifecycle CI regression now checks the canonical stale-lifecycle rejection while retaining no-I/O and replacement-run preservation assertions.

Reproduction:

node scripts/run-vitest.mjs src/gateway/worker-environments/worker-turn-launcher-reconciliation-authority.test.ts src/gateway/worker-environments/skill-resource-transfer.test.ts src/gateway/worker-environments/worker-turn-launcher-reclaimed-placement.test.ts

The unrelated browser geometry failure was reproduced on unchanged CI base. Current main has been incorporated, including #142728 (settle geometry before comparison) and #142708 (shipped SDK alias removal policy), resolving the two previously documented baseline blockers without local policy or assertion changes.

Integrated candidate validation: all 141 Gateway tests and 9 browser tests passed after incorporating current main. The formerly failing document-card geometry test and plugin-boundary deadline guard both pass.

Fresh independent review of the complete integrated PR against current main found no actionable P0–P2 defects.

Integration lint exposed a one-line file-length overflow in the transcript projection. Compacting an existing translation call into the formatter-accepted inline layout resolved it without changing runtime behavior. Targeted lint, UI types, and the reconciliation browser regression pass.

Published head: 7879b592599cd212040da9d81e1dfd24a5ae0c60. Required local validation completed: formatting, all selected typecheck lanes, unused-export scans, lint (the sole max-lines finding fixed and targeted rerun passed), style/script lint, platform-helper tests, and remaining repository guards. SwiftLint is delegated to macOS CI on this Linux host. Exact-head hosted CI and review are pending.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: L maintainer Maintainer-authored PR labels Sep 3, 2026
@jalehman
jalehman force-pushed the openclaw/improve-cloud-reconciliation-ux branch from 2512f27 to 1ac0bad Compare September 3, 2026 21:59
@jalehman
jalehman marked this pull request as ready for review September 3, 2026 22:01
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 1:14 AM ET / 05:14 UTC (Revision 11).

ClawSweeper review

What this changes

The PR retains accepted messages during worker setup and workspace synchronization, resumes them after admission checks, and shows waiting receipts in chat.

Merge readiness

✅ Ready for maintainer review

Keep open: the reported failure remains on current main and in v2026.9.3. The latest changes address the previous authority finding, and the supplied final-effect evidence supports that repair. No remaining blocking correctness finding was identified.

Priority: P1
Reviewed head: 7879b592599cd212040da9d81e1dfd24a5ae0c60

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful owner-level repair with meaningful browser and final-effect evidence and no remaining blocking finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.
Evidence reviewed 11 items Current main still has the reported failure: The fetched main revision retains rejectPendingWorkerResult, which waits with SESSION_WORK_ADMISSION_DRAIN_TIMEOUT_MS and then throws the reconciliation error even when the wait completes.
Latest release retains the same behavior: The v2026.9.3 source contains the same bounded wait followed by terminal rejection; this PR's central repair is not already shipped there.
Previous authority finding addressed: Compared with the previously reviewed head, live-run assertions now reach attachment transfer, skill-resource transfer, and node execution. Attachment initialization retains the returned directory identity before observing revocation, allowing exact placement-owned cleanup.
Findings None None.
Security None None.

How this fits together

The Gateway holds accepted chat and inter-session messages before assigning execution to a worker. Placement admission coordinates setup, workspace synchronization, and live authority; the Control UI displays the resulting waiting or execution state.

flowchart LR
  A[Chat or session message] --> B[Durable input custody]
  B --> C[Worker placement admission]
  C --> D[Wait for setup or workspace sync]
  D --> E[Recheck destination and authority]
  E --> F[Execute accepted input]
  E --> G[Reject cancelled or replaced work]
  B --> H[Chat waiting receipt]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +463, Tests +1642, Docs +4, Config +1, Other +8. Total +2118 across 50 files.

View PR surface stats
Area Files Added Removed Net
Source 27 589 126 +463
Tests 18 1675 33 +1642
Docs 3 5 1 +4
Config 1 1 0 +1
Generated 0 0 0 0
Other 1 9 1 +8
Total 50 2279 161 +2118

Review metrics

Metric Value Why it matters
Production versus test growth Production net +471 lines; tests and test configuration net +1642 lines Production growth implements owner-bound waiting and authority checks; most growth covers lifecycle, custody, and final-effect regressions.
Protocol surface 1 optional placement response field; 0 new settings The UI receives an authoritative reconciliation fact without introducing a competing configuration or queue.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137539
Summary: This PR is the candidate implementation for the linked accepted-follow-up interruption report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep accepted input under the existing custody and placement owners, with automatic continuation only while destination and execution authority remain current.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main admission source directly establishes the bounded reconciliation wait followed by terminal rejection. This review did not execute the reproduction.

Is this the best way to solve the issue?

Yes: the patch repairs existing custody and placement admission rather than adding another retry queue, and the latest changes preserve live authority through final dispatch.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ec7464766fab.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 security-boundary: Current PR review selected no merge-risk labels.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: Healthy worker synchronization currently interrupts accepted follow-ups and forces users to resend messages.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.
  • proof: sufficient: Contributor real behavior proof is sufficient. The hash-matched body reports final-effect rejection and cleanup through real admission, placement, managed-media, and filesystem owners, including tunnel/dispatch revocation and an authorized byte-transfer comparison. Inspected browser captures and the reported real-Gateway run support custody and resume. Transport and worker replies are synthetic; this establishes the changed boundaries, not live cloud-provider execution.

Evidence

What I checked:

  • Current main still has the reported failure: The fetched main revision retains rejectPendingWorkerResult, which waits with SESSION_WORK_ADMISSION_DRAIN_TIMEOUT_MS and then throws the reconciliation error even when the wait completes. (src/gateway/worker-environments/worker-turn-admission.ts:25, ec7464766fab)
  • Latest release retains the same behavior: The v2026.9.3 source contains the same bounded wait followed by terminal rejection; this PR's central repair is not already shipped there. (src/gateway/worker-environments/worker-turn-admission.ts:25, 1391f7cd2d40)
  • Previous authority finding addressed: Compared with the previously reviewed head, live-run assertions now reach attachment transfer, skill-resource transfer, and node execution. Attachment initialization retains the returned directory identity before observing revocation, allowing exact placement-owned cleanup. (src/gateway/worker-environments/workspace-result-finalize.ts:389, 7879b592599c)
  • Captured proof body fully recovered: The complete GitHub body matched captured SHA-256 d54e51655400ee4e728f9aa5de50e5aa6c49afe1f74a87cdaaabe4c55fe912a6. Its previously omitted final-dispatch section reports rejection before commands for tunnel/dispatch revocation, exact-directory cleanup after init/write revocation, and an authorized original-byte readback. It explicitly identifies synthetic transport and reports 141 passing Gateway tests after integration. (7879b592599c)
  • Final-effect harness matches the repaired boundary: The inspected harness enters real placement admission, retains a prior result claim, revokes prepared-source or admitted-run authority at wait/workspace/tunnel/dispatch/init/write boundaries, and executes production attachment commands against an isolated filesystem. Assertions inspect executed commands, remaining files, claim release, and exact authorized bytes. (src/gateway/worker-environments/worker-turn-launcher-reconciliation-authority.test.ts:40, 7879b592599c)
  • Production transports consume the dispatch guard: SSH workspace dispatch checks command.assertCurrent after connection readiness and before command execution. Node workspace dispatch composes the same assertion into its final isDispatchAuthorized callback. The changed boundary is OpenClaw-owned workspace admission and transport, rather than a changed Codex harness contract. (src/gateway/worker-environments/node-worker-tunnel.ts:255, 7879b592599c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jalehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-08T15:17:40.305Z sha b925444 :: blocked before merge. :: [P1] Wait for durable recovery when the live claim is absent | [P2] Keep lifecycle admission closures blocked in the composer
  • reviewed 2026-09-08T19:36:19.952Z sha 2558a8c :: blocked before merge. :: [P1] Wait for durable recovery when the live claim is absent | [P2] Keep lifecycle admission closures blocked in the composer
  • reviewed 2026-09-08T20:47:53.481Z sha f89cdba :: blocked before merge. :: none
  • reviewed 2026-09-08T21:04:13.547Z sha bd03e3c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T22:43:58.125Z sha a9ba4d2 :: blocked before merge. :: none
  • reviewed 2026-09-08T23:31:11.744Z sha 0012bc4 :: needs real behavior proof before merge. :: [P1] [P1] Recheck run authority after reconciliation waits
  • reviewed 2026-09-08T23:44:15.188Z sha 975e0b6 :: needs real behavior proof before merge. :: [P1] [P1] Recheck run authority after reconciliation waits
  • reviewed 2026-09-09T00:01:23.555Z sha 9816595 :: needs real behavior proof before merge. :: [P1] [P1] Carry live-run authority through final attachment dispatch

@jalehman

jalehman commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review findings in d4d82262a97:

  • Composer sendability now requires a queued pending input whose runId is explicitly present in the session's authoritative activeRunIds; move-only draining/reconciling placements remain blocked.
  • Workspace-sync receipts use the same run-scoped ownership signal instead of the placement state alone.
  • The run-scoped workspace-sync input now participates in the chat-item structural cache key, with coverage for both entering and leaving the receipt state.
  • The mocked browser regression now boots from chat.startup and still proves custody → active → failed UI transitions.
  • Existing gateway admission coverage remains in worker-turn-launcher-claim-admission.test.ts and the turn-claim closure tests.

Local verification:

  • pnpm test ui/src/pages/chat/chat-pane-placement-composer.test.ts ui/src/pages/chat/chat-pending-inputs.test.ts ui/src/pages/chat/chat-thread.test.ts — 293 passed
  • pnpm tsgo:test:ui — passed
  • pnpm lint — passed
  • targeted cloud reconciliation UI E2E — passed
  • format and git diff --check — passed

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL and removed size: L labels Sep 4, 2026
@jalehman

jalehman commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head review requested for 25497bcb65d4c1c705574a898536d6f8bfc4c1a8. The prior P1/P2 findings are addressed: Gateway-owned pending workspace-result state now admits the initial follow-up, the browser regression starts with no pending input, and the cloud-worker guidance documents automatic resume.\n\n@clawsweeper re-review

@jalehman

jalehman commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@codex review\n\nPlease review exact head 25497bcb65d4c1c705574a898536d6f8bfc4c1a8, including the initial no-pending-input reconciliation flow and authoritative server projection.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T15:10:03.852283Z b925444 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Sep 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25497bcb65

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…d-reconciliation-ux

# Conflicts:
#	docs/gateway/cloud-workers.md
#	src/gateway/worker-environments/placement-projector.ts
#	src/gateway/worker-environments/worker-turn-launcher.ts
#	ui/src/i18n/locales/en.ts
#	ui/src/pages/chat/chat-pane-placement-composer.test.ts
#	ui/src/pages/chat/chat-pending-inputs.ts
#	ui/src/pages/chat/chat-thread-build.ts
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 8, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 8, 2026
@jalehman
jalehman requested a review from a team as a code owner September 8, 2026 23:54
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 9, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 9, 2026
@jalehman
jalehman merged commit 0278bf2 into main Sep 9, 2026
206 of 207 checks passed
@jalehman
jalehman deleted the openclaw/improve-cloud-reconciliation-ux branch September 9, 2026 07:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
…law#137576)

* fix: preserve cloud follow-ups during workspace sync

* fix(ui): scope reconciliation follow-ups

* fix: project cloud follow-up admission state

* fix: repair reconciliation CI coverage

* fix: preserve recovery fences and lifecycle send barriers

Address cloudrec-26c: return actionable recovery outcomes for claimless retained results and keep Stop, Restart, and Move from reopening composer admission.

* test: avoid returning the recovery responsiveness timer

* test: correlate cloud-sync proof with the submitted run

Ref: cloudrec-f32. Match the browser idempotency key, complete the mocked lifecycle, and assert one user bubble in waiting and resumed states.

* fix: hold worker input through initial setup

Keep accepted browser and inter-session input in custody until its exact live
setup owner publishes an authoritative placement. Revalidate session, writer,
runtime and execution authority before workspace IO; preserve cancellation
and lifecycle replacement fences.

Refs: cloudrec-db3.8, cloudrec-db3.9, cloudrec-db3.11

* fix: recheck run authority after worker reconciliation

* fix: fence remote input dispatch with live run authority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloud follow-up is interrupted while workspace reconciliation is healthy

1 participant