Skip to content

fix(gateway): preserve desktop readiness and worker outcomes - #136297

Merged
steipete merged 23 commits into
mainfrom
codex/cloud-cua-session-readiness
Sep 3, 2026
Merged

steipete merged 23 commits into
mainfrom
codex/cloud-cua-session-readiness

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Related: Mac Command shortcuts and native packaging repair #136018, already merged.

Current head: 8211f9f, refreshed over main 2640154bcf80. Fresh exact-head packaged Linux CUA/WebVNC acceptance passed: five select-all/type cycles, 13 successful computer results, 20 uninterrupted passive viewer observations, exact workspace reconciliation, and normal provider cleanup. The full build, tarball verification, normal runtime installation, 57 loaded-resource comparisons, 57 Desktop unit tests, and 39 real-browser tests pass. The full 54-path runtime change gate passed before the separate test-fixture follow-up; both retention tests, 51 artifact-helper/resolver tests, targeted lint, and script typechecks pass afterward. Normal PR CI, attempt 2 passed: 142 successful / 5 skipped, including the required openclaw/ci-gate. All four shared-kit Periphery checks also passed. Earlier platform and failed-run evidence keeps its original build identity below.

Additional instructions

Keep Allow edits from maintainers enabled so maintainers can help update the branch when needed.

What problem this solves

Creating or reconnecting a cloud CUA session could leave Desktop availability stale after approval, replace a manually chosen desktop when session placement changed, or lose a dispatched worker to its discovery deadline. Explicit Continue on Gateway could also fail after fencing an offline paired device. Failed model calls could appear successful in diagnostics, obscuring the cause.

What changes

Desktop inventory and session events now use one controller, removing the duplicate document-inventory path. The panel distinguishes automatic selection from an explicit choice, while chat presentation owns the popout lifetime. Automatic selection follows the session; an explicit choice retains its connection, control, and popout target through placement updates and delayed session lookups. Direct document navigation and real context changes still replace the source. Disconnect reporting preserves noVNC's public clean flag and actual socket code/reason. The approved, exact-version noVNC patch consumes ignored extended clipboard payloads before returning, preserving the next framebuffer message without inflating or publishing ignored data.

Desktop-only English now loads with the lazy viewer through the existing catalog registrar. Shared navigation/setup labels stay eager; registration preserves the namespace, complete source catalog, and translation order. This removes startup bytes without changing the viewer or its recovery guidance.

The launch owner retires the discovery deadline after dispatch while retaining cancellation and ownership checks. Explicit offline recovery uses the canonical environment destroy flow with the exact session/environment/owner epoch, fences old authority, joins local teardown, and rechecks authorization after awaited cleanup. The previous retirement helper and unbound operator-abandon reason path are removed. Provisioning stays in provider-lifecycle; teardown orchestration now lives with its existing owner-lifecycle validator, stop, and completion methods. Cleanup retries preserve the exact committed abandonment decision so Continue remains available. Only typed disconnected-owner failures may leave physical cleanup pending; ordinary reclaim still requires physical acknowledgment. Existing attachment and destroy-request state retain cleanup responsibility without authority over the replacement. The cloud-worker documentation explains pending cleanup and the unsynced-file-loss boundary.

The refresh incorporates main's canonical diagnostic terminal owner and removes this branch's duplicate error adapter. The remaining production adjustment records an authoritative aborted outcome ahead of an accompanying transport error. Tests preserve usage, result identity, one terminal event, privacy, hooks, timelines, and iterator cleanup. One manifest-based resolver also replaces three stale-shim-dependent Vite/Vitest/Playwright launch paths without changing installation or browser-cache policy; main's output-root guards and performance-validator arguments are preserved.

Current candidate validation

The current merge incorporates main 2640154bcf801cd18f92fa20b5c4172f0539b284. It preserves main's shared Desktop renderer and formatting alongside this branch's lazy labels and connection ownership. App-launch settlement now clears its busy state once after either terminal result, keeping the existing file-size limit. The table distinguishes prior owner proof, repeated Desktop checks, and completed exact-head package/live acceptance. The test-only follow-up has its own focused checks.

Check Observed result
Diagnostic regression With the diagnostic production owners byte-identical to main: 4 failed / 33 passed, all four failures misclassifying aborted calls as connection resets. The canonical owner correction passes all 37 with the same command.
Adjacent diagnostics and launchers 112 passed / 1 platform skip across six files: 64 diagnostic cases and 48 launcher/package-bin/output-root cases. This includes the 37 above.
Desktop units 57 passed, including explicit selection before/after asynchronous lookup completion, placement changes, control retention, real context replacement, and disconnect cleanup.
Browser 39 passed across Desktop document/panel suites, including the real noVNC parser. All three active/starting/offline placement cases retain the selected viewer and popout URL. Four ignored-clipboard cases fail before the dependency repair while 19 panel controls pass; all 23 panel cases pass after it. Coalesced and byte-fragmented delivery both require the next framebuffer without reconnect.
Worker lifecycle 155 passed across 11 owner/placement/tunnel/recovery suites after consolidation. Main-style disconnected-stop swallowing loses the exact attachment in three regression cases; the repaired owner retains it through Continue and acknowledges the exact worker stop on reconnect. A separate retry-decision reproduction fails before preserving the canonical marker.
Static checks The full 54-file runtime-change gate passed at ebaed972: formatting, package locks, all typechecks, dead exports, typed lint, import cycles, and changed test lint. The five-path test-harness follow-up separately passed the two retention tests, 51 artifact-helper/resolver tests, targeted lint, and script typechecks. Earlier passes exposed local type/size/unused-binding mistakes; each was corrected without weakening checks. The lazy catalog also exposed overly broad shared-label types and the panel size limit; required string types and two redundant-local removals resolve those.
Review Managed Codex review of the complete final 59-file 8211f9f3 candidate: no actionable findings at the requested P0 threshold. Earlier refreshed and focused reviews also pass; these are source review, distinct from live acceptance. The dependency parser contract and actual merge resolution were read directly.
Startup payload and catalog At 8211f9f3, the canonical build passed at 348810 B startup gzip against unchanged 350141 B enforcement. Viewer-only Desktop English loads with its lazy consumers; five shell/setup labels remain eager. The complete ordered English catalog is byte-identical before/after extraction; existing catalog composition/source-hash tests pass. No baseline, allowance, compressor, or loading contract was weakened.
Package Exact clean 8211f9f3 full build and all integrity checks pass. The 60,129,280-byte tarball SHA-256 is cb1f0c28a0e5dfa20601fc614965087d8e1e60b5ac2f042c035b9de4c0efddb3; portable worker digest is abd51c84dce4cddd6e2dba612b12c0446d6c0cf35b00b31f2aa341814041bd18. Normal isolated installation passes, including native dependencies. All 1,614 packaged UI files, including compressed variants, match the installed runtime, and all 57 actually loaded DOM resources match the serving runtime. The deployed worker files and native CUA 0.22.0 binaries were verified separately before the live run below.

The original selection repair separately reproduced 3 component failures and 3 browser failures before the fix. The selected browser reproduction uses a complete persistent inventory fixture; an earlier run with a secondary missing-mock-response error is not the published before capture.

The preceding b31 head passed normal CI attempt 1: 177 passed / 5 skipped, including the actual openclaw/ci-gate. The new head has its own run above; prior successes are not substituted for it. Head 875955eb passed 140 jobs but failed startup size by one byte (350142 versus 350141), and its aggregate gate failed accordingly. The refreshed candidate initially remained above the local byte budget. Moving viewer-only copy behind its existing lazy owner resolves the cause and provides headroom; shortening text alone was insufficient. Earlier Swift fixture repairs and their hosted proof remain historical, with no weakened timeouts, capacity rules, workflows, or assertions.

Selection before and after

Synthetic browser-harness captures for the repair in 245760ed: restoring the pre-fix selection behavior replaces the chosen viewer; restoring the repair preserves it and its control. Both use the same fixture desktop transport. These pictures do not claim native CUA or uninterrupted noVNC proof. The same assertions pass after the main refresh.

Explicit desktop selection replaced by a placement update before the repair

Explicit desktop selection and control retained after the repair

Live platform and recovery evidence

The historical live Gateway/worker and Windows package below use cfd71bb. The retained signed Intel Mac app is c61a707. Neither is relabelled as the current candidate. The newer UI and diagnostic changes have the source validation above plus the separately identified packaged Linux acceptance below.

Surface Observed result and limit
Windows Server 2022 x64; normal npm hooks, CUA 0.22.0 hashes/Authenticode, and visible terminal launch verified. Real screenshot/click/type changed Count 0/empty → Count 1/exact marker, independently observed through WebVNC. The 322-byte file reconciled exactly. Normal reclaim removed worker/temp state, freed its slot, and completed canonical lease cleanup.
macOS On 15.7.9, the continuation typed and saved the exact TextEdit marker with Command-S. The 206-byte file preserved its prefix and contained one append; delivered pixels and independent WebVNC agreed. The worker exited and freed its slot. Normal approval connected the embedded Control UI. A later normal Quit/Dock relaunch restored Home and Plugins. The initial visually misread attempt made no edit and is not counted as success.
Linux Linux x64/CUA 0.22.0: six successful tool results, screenshot/click/type/readback, and identical 300-byte native/local files. GTK was installed specifically for the fixture, not stock-image coverage. Two viewer disconnects required normal reconnect; this is not continuity acceptance. A release POST timed out, then canonical inspection confirmed reclaimed/destroyed/released/cleanup complete without a duplicate POST. Worker temp state and reconciliation journals cleared.
Stale authority and offline continuation One stale-epoch request returned the canonical rejection with byte-identical before/after session state. After normal Mac app Quit, one correctly bound abandon-source move restored the same session and managed workspace locally without replaying its last run. Reopening the same app reconnected its identity; the old environment was destroyed while local ownership stayed unchanged. Both workers had completed before Quit.

The stale-epoch rejection occurs at validateAbandonSource, before beginPlacementMove and abandonment teardown. It is not packet capture or raw remote-stop acknowledgment evidence. Historical focused owner/restart/lifecycle tests cover stale session/epoch, authority closure after awaited work, mixed cleanup failures, and replacement owners. Explicit local recovery accepts loss of unsynced synthetic workspace changes; it does not prove active-turn interruption or lossless recovery of unsynced files. The retained attachment, destroy request, credential/claim fences, and reconnect cleanup preserve their owners; ordinary reclaim still requires physical-stop proof.

Historical approval-to-connected proof

Gateway/UI f7d9b600 and Windows node 777b4089: the same document connected after command approval without refresh, reselection, navigation, or restart. Historical evidence, not current-candidate acceptance.

Historical Desktop source unavailable before approval

Historical WebVNC document connected after approval

Review disposition and remaining limits

The ClawSweeper review, refreshed at 22:02 UTC against 8211f9f3 found no concrete introduced functional defect while flagging dependency framing verification, patch context whitespace, consolidation, and a stored-data annotation. Its rank-up moves are addressed by the pinned source/parser proof and the completed packaged Linux continuity check below. The main merge resolves a real conflict; the refreshed head now has exact package/live verification and green required CI. Earlier failed attempts remain recorded and are not counted as CUA acceptance.

The dependency contract was inspected directly: the unpatched reference client was byte-identical to noVNC 1.7.0's tagged source, which emits disconnect with detail.clean and sets the flag false on parser failure. Its ignored extended-clipboard path returns without consuming the compressed payload, so the next parse sees zlib byte 0x78 as message 120 and disconnects. Both observed Linux failures match this signature. The unpatched 1.7.0 client and inspected upstream revision bef170ebf149 still contain it.

The approved dependency repair is committed. Pnpm applies the exact noVNC 1.7.0 patch through the normal patched-dependency mechanism; the installed file matches the reviewed target hash. Four real-parser clipboard cases reproduced the failure before repair, and the combined 39 browser cases now pass. The exact-version guard and upstream-removal criteria are included. The fresh immutable package is built, installed, serving and byte-verified. Exact-head acceptance below verifies uninterrupted WebVNC while CUA performs all five selection/type cycles.

The latest framing/security concern is resolved by a fresh direct source comparison, not an inferred wrapper contract. Exact tagged core/rfb.js blob 80011e4a10203806f14df1ffc3b8425861a965a7 matches the patch preimage; installed blob b8b75557417cfb0f0522c0abbb56ec23b63d625b matches its reviewed postimage. In the complete upstream ServerCutText handler, line 2336 waits for all abs(length) content bytes, line 2352 consumes the four-byte flags, and line 2443 consumes length - 4 on the accepted Provide path. The patch makes the two ignored Provide cases advance that same remainder. Upstream Websock confirms that skip advances the queue index without copying or inflating data; its rQwait at line 167 preserves fragmented-message retry by rewinding the header. The four red/green real-parser regressions separately verify coalesced and fragmented continuation to the following framebuffer. The temporary exact-version dependency exception was explicitly approved in this task; that approval remains in force.

The latest whitespace rank-up is explicitly skipped: line 7 of patches/@[email protected] is the required single-space unified-diff marker for a blank context line, not whitespace added to noVNC source. It is patch syntax, not a source formatting change. Normal patch application, installed-source hash verification, and the real-parser regressions pass; no source formatting or validation rule is weakened.

For the stored-data annotation: scripts/run-node-package-bin.mts:12-20 reads the installed dependency manifest without writing state; ui/src/pages/chat/chat-pane-layout-render.ts:150-189 serializes only a comparison key in the private desktopFocus field and fences stale callbacks by object identity. Existing outbox serialization is unchanged. No persistent store, SQLite schema, migration version, configuration option, or public-protocol shape is added. Against the pinned main parent, runtime is +535/-338, tooling +85/-80, tests/support +2072/-417, docs +26/-10, and metadata +11/-9. The latest review’s +206 production/tooling metric includes four test-artifact registration lines; classifying those as test support gives +202. Its own source surface table reports the same +197 runtime delta and 59 files; its separate 108-file metric does not match the exact PR delta. Net production/tooling is +202; the dependency patch itself is -2 production lines (its 19-line patch artifact is counted separately). The raw runtime diff includes relocation of existing teardown orchestration. Remaining growth provides explicit pending-cleanup ownership, joined local teardown, exact abandonment binding, and Desktop connection/popout lifetime handling. The controller/resolver consolidation removes duplicate paths; the main refresh removes the duplicate diagnostic adapter. The separate abandonment alias and reason bypass are removed. The additional catalog/type/registration wiring follows the existing lazy English owner and removes viewer-only copy from startup; the moved copy preserves all values and source order.

The Windows assistant's final prose incorrectly described an older run despite correct current actions and file effects. The same 755-byte text was already present in the normalized provider terminal result, then the committed transcript and wait response. Without raw provider frames, provider-versus-adapter cause remains unproven. The earlier Mac embedded-UI startup-watchdog cause also remains unproven despite the later normal connection. Named follow-ups not claimed fixed here: held-pointer modifier/movement semantics and desktop-only capability promotion on custom nodes without pairing scope.

Related Crabbox Windows stdin repair #1724, activation recovery #1740, and cancellation cleanup #1743 are merged. The normal coordinator deployment for 8c2e0e519bc2 succeeded. This does not claim real-provider response-loss or cancelled-create fault injection, or an updated installed CLI release.

Historical disposable Windows and Linux leases, all four 87cc255f Linux attempt leases, and the final 8211f9f3 Linux lease are cleaned up. The AWS Mac and Dedicated Host are intentionally retained; temporary maintenance and expired keep-awake processes are cleaned up. No release, npm publication, or manual coordinator deployment was performed.

Earlier packaged runs and dependency update

The first 87cc255f Linux dispatch on September 3 failed during provider setup, before fixture staging or any model/CUA action. The installed Crabbox 0.48.1 binary (c766cde9) hit a connection reset on fixed-lease creation, confirmed the same lease by exact PUT recovery, then exhausted the recovery context while waiting for activation. Direct inspection confirmed that this old CLI incorrectly uses the 90-second response-reconciliation context for readiness. The already-merged Crabbox #1740 returns activation to the original acquisition deadline without extending it. Updating the coordinator alone did not update that local executable.

A clean existing task checkout was fast-forwarded to Crabbox main 7c1f77888142. A separate task binary was built with source provenance and passes the async creation/recovery tests under the race detector. Only the existing isolated Gateway profile’s executable path changed; the machine-wide CLI, provider, target, quotas and timers remain unchanged. The same immutable OpenClaw package was restarted normally with no active turns or workspace operations. No release or publication occurred. The first failed lease finished normal provider-absence reconciliation at 18:40 UTC, and its Gateway environment was destroyed automatically. Only then was one new dispatch attempted; no force cleanup was used.

During that failed attempt, the embedded Mac’s explicit selection/control popout remained bound to the Mac, but its stream closed at 18:02 UTC. This is recorded as a failure, not uninterrupted acceptance. Native TCP close preceded local Screen Sharing EOF; no new Mac lock or process restart occurred. The exact upstream close reason is not yet established. The later planned Gateway restart is separate. The planned restart used a normal WebVNC reconnect. The Mac’s explicit control source remained selected during the second Linux failure; its forest-screen image and connected control panel were independently verified again at 19:25 UTC. This is Mac viewer observation, not Linux CUA acceptance.

The second Linux dispatch used the verified task CLI at 7c1f77888142, admitted a fresh AWS lease at 18:42:34 UTC, and never published an instance identity before cancellation. OpenClaw recorded the destroy request 1.346 seconds after normal reclaim and entered teardown at 1.651 seconds. The longer RPC wait belonged to Crabbox’s unresolved provider cleanup, not delayed OpenClaw cancellation. Both dispatch and reclaim clients are terminal; no fixture, model request, CUA action, or Linux viewer connection occurred. At 19:14 UTC, canonical recovery had completed an inventory read without finding the resource in the recorded region and scheduled its next cleanup check. This is not proof of absence across all fallback regions. At 19:36 UTC the same canonical lease reached released/cleanup complete, its potential-resource flag cleared, and OpenClaw destroyed the environment without another stop request.

The third dispatch admitted a fresh lease at 19:39:39 UTC and created a real AWS instance. Profile setup committed a successful result; desktop setup reached Xfce but failed while recording its terminal result at 19:47:23 UTC. The client returned exit 7 with only context deadline exceeded, and a later normal receipt lookup confirmed no committed terminal evidence. The nearby workspace owner released line denotes successful lock release, not an ownership failure. Provider cleanup completed at 19:49:35 UTC. No fixture stage, model request, CUA action, or Linux viewer connection occurred. All task dispatch/capture processes are joined.

The diagnostic loss is repaired separately in Crabbox #1782: both finish-submission and receipt-read errors, attempt counts, and recovery guidance survive the existing deadline. Six deterministic regressions fail before the fix and pass afterward; focused race tests, vet, and independent review pass. This does not claim to fix the still-unidentified underlying request delay. That PR is merged as d1542592fc84. The fourth attempt used its reviewed task CLI and explicit run-request tracing without changing recording limits or accepting an unverified receipt. Both setup receipts were independently verified through the native CLI.

The earlier deployment verification recorded coordinator version dfc6e2fe-9bfd-45d8-a35a-bfd0cae81133, from the successful 15:44 UTC deployment at a2ee4be96759. The acknowledged-wakeup repair is already included through Crabbox #1767. Its older “deployment interrupted” cleanup wording also covers runtime-generation or settled-request recovery; it does not establish a new deployment. Current settings have no persisted Worker observability configuration, the configured login lacks telemetry-query permission, and the available aggregate request metrics cannot identify this lease or the stalled AWS operation. No logging setting, coordinator deployment, provider, quota, or timer was changed to obtain proof.

Named diagnostic follow-ups: distinguish coordinator runtime interruption from deployment in Crabbox’s cleanup text; preserve the original failure without repeatedly appending the same pending-cleanup error; retain native desktop stream close provenance and avoid disconnecting an already-terminal noVNC handle. None is claimed repaired by this PR. The previously missing five-cycle Linux continuity acceptance is complete at 87cc255f; the main refresh retains its own identity and validation.

Earlier successful packaged Linux acceptance (87cc255f)

The fourth attempt used immutable OpenClaw 87cc255f9a76 with the reviewed Crabbox diagnostic repair. The served UI, remote worker files, and native CUA 0.22.0 hashes matched the accepted package. One agent turn completed all five select-all/type cycles, returning 13 computer results. Twenty independent passive observations remained view-only with no reconnect prompt or unavailable state, and no reconnect was performed. The final 300-byte proof file reconciled into the existing canonical managed workspace byte-for-byte (SHA-256 6ae7106874c88b25bee2f58584f4e8e277896161873207ca948c0b0d32343b4c). GTK was installed for this synthetic fixture; this is not stock-image coverage.

Normal reclaim completed successfully in 75.521 seconds, with the placement reclaimed and environment destroyed. Canonical inspection confirmed the lease released with cleanup complete; the request capture and all attempt clients joined. The retained Mac's explicit source/control popout remained unchanged across the Linux cycles. The Mac and Dedicated Host remain intentionally retained.

This establishes the bounded packaged Linux continuity scenario at 87cc255f; the ignored-clipboard wire behavior is separately proven by the real-parser regressions. It does not explain the earlier coordinator delay or Mac stream closure, and it is not acceptance of a later build.

CI fixture follow-up

The ebaed972 CI run hit the unchanged 15-second deadline in session-utils.child-cache-retention.test.ts, before any failed retention assertion. The original fixture passed locally in 7.559 seconds; a separate local phase probe measured 5.219 seconds of runtime imports and 0.322 seconds executing the unchanged fixture. CI did not record phase markers, so its exact stalled phase is not claimed.

8211f9f3 registers this child with the existing compiled-subprocess owner, following the session-list retention sibling. The fixture body, GC control, child-link checks, 15/30-second deadlines, cancellation, output limit, and process-tree cleanup are unchanged. The wrapper reported preparation before test execution; the repaired child passed in 0.951 seconds and its sibling in 1.720 seconds. All 51 existing artifact-helper/resolver tests also pass. This adds no product runtime code. The formerly failing compact-large-3 job passed on 8211f9f3; the remaining platform jobs and required aggregate also passed after the normal runner recovery below.

Final exact-head packaged Linux acceptance (8211f9f3)

The fresh run used the real 8211f9f3 package/build, an independently verified normal installation, and the reviewed Crabbox diagnostic CLI. The existing managed session and worktree were reused. A new AWS Linux worker was created through normal dispatch; its actual deployed worker files, modes, native CUA 0.22.0 binaries, placement generation and owner epoch matched the bound candidate. The already-open WebVNC document attached automatically when provisioning became ready, without refresh or reselection.

One model turn completed five select-all/type cycles with 13 successful computer results, plus the native Linux x64 exec/file result. Twenty passive WebVNC samples remained view-only with no reconnect prompt or unavailable state. The final visible value was independently inspected through WebVNC; the unchanged final screenshot correctly retained its preceding frame identifier. The terminal run status was ok. The synthetic GTK fixture prerequisite is explicit; this does not claim stock-image GTK support.

Normal reclaim completed in 36.357 seconds. The 300-byte native exec result synchronized byte-for-byte to the existing canonical managed workspace, SHA-256 161a14a194b118068c7bf96a511798bfcbdb02abdc606615d96548899a2e84f0. The placement became reclaimed at generation 183, the environment was destroyed, the active claim cleared, and pending result, reconciliation, and move rows were all absent. Canonical provider inspection confirmed released/cleanup complete at 21:46:52 UTC. Cleanup began within the original 10-minute reserve; no TTL, timeout, quota, or proof criterion was expanded. The Linux viewer then correctly showed its reclaimed source unavailable and was closed.

The retained Mac's selected source and explicit-control popout remained unchanged throughout this final Linux run; its connected forest frame was independently inspected afterward. The Mac instance and Dedicated Host remain intentionally retained. Its older native app and Windows proof retain the original build identities above: this final Linux run does not relabel those tests or explain the earlier Mac stream close, Windows terminal-prose mismatch, or coordinator request delay.

Final CI and merge readiness

The first exact-head CI attempt completed 139 jobs successfully and skipped five. Only two Swift jobs remained unassigned on Blacksmith after more than 40 minutes, with no runner or executed step. After a fresh check established zero executing jobs and the unchanged PR head, normal cancellation and one unsuccessful-job retry followed docs/ci.md’s existing recovery procedure. The canonical retry selected hosted macOS, and both native jobs passed. The final aggregate passed with 142 successful / 5 skipped. All 139 previously successful jobs retained their original start/end timestamps; they did not execute again.

The shared-kit workflow had the same two unassigned producer jobs. Its existing hosted retry also passed, including both consumers and their intersection: four successful checks. No source, workflow, backend variable, capacity, or timeout was changed. The temporary GitHub bulk-job reader errors were observation failures, not test failures, and did not cause another retry.

The latest review’s two rank-up requests have explicit dispositions above: preserve the valid blank-context patch marker and provide exact upstream framing proof. The data-model annotation is resolved by the actual transient owners, and production growth is classified and justified. The review environment’s missing dependency access does not remain an evidence gap in this maintainer investigation; no new rating-only re-review is required. Main advanced to 629bedd1 without direct overlap with the 59 PR files; direct UI/chat and independent provider/terminal sibling inspection found no integration conflict. GitHub’s required check is green on the pinned head.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 6:02 PM ET / 22:02 UTC.

ClawSweeper review

What this changes

Repairs cloud-worker launch and abandonment handling, preserves model diagnostics across cancellation, improves Desktop reconnect continuity, and patches noVNC clipboard parsing.

Merge readiness

⛔ Blocked before merge - 8 items remain

Keep open: current main does not contain the branch’s worker and Desktop repairs. Remove one whitespace defect and obtain direct upstream review of the noVNC parser patch before merge.

Priority: P1
Reviewed head: 8211f9f3f7d3d61a0ee63646309555712d807c78
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused source evidence and broad stated coverage, but the noVNC dependency contract and broad ownership consolidation remain unresolved.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: This maintainer-authored PR supplies CI and live-behavior claims in its discussion; this read-only review independently established source and test coverage only.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR supplies CI and live-behavior claims in its discussion; this read-only review independently established source and test coverage only.
Evidence reviewed 6 items Current main lacks the reviewed repair surfaces: The PR checkout is 8211f9f; comparison with fetched main showed the worker-launch and Desktop client surfaces differ, so this work is not already implemented on main.
Launch deadline ownership and regression coverage: The launch adapter disposes the provider-availability deadline after dispatch while retaining the caller deadline for the dispatched RPC; the paired test covers this boundary.
Placement lifecycle owner and coverage: The abandonment flow captures and revalidates the placement owner before cleanup; regression coverage exercises stale owners, replacement, restart, and cleanup binding.
Findings 1 actionable finding [P3] Remove trailing whitespace from the noVNC patch
Security Needs attention Confirm noVNC clipboard framing before merge: The local patch changes consumption of ignored extended clipboard payload bytes from a remote RFB peer. Verify byte-consumption and continuation semantics against noVNC 1.7.0 source before accepting it.

How this fits together

Cloud worker placement launches remote execution environments and tunnels tool calls through the Gateway; lifecycle results feed agent runs and diagnostics. The Control UI Desktop view consumes RFB frames and reconnect state for interactive remote control.

flowchart LR
  A[Agent run] --> B[Gateway worker placement]
  B --> C[Worker launch and tunnel]
  C --> D[Provider lifecycle]
  D --> E[Agent diagnostics]
  C --> F[Desktop RFB client]
  F --> G[Operator desktop view]
  H[Clipboard RFB payload] --> F
Loading

Decision needed

Question Recommendation
Should OpenClaw retain the local noVNC 1.7.0 extended-clipboard parser patch after direct upstream-source comparison? Approve after source comparison: Compare the patch against exact noVNC 1.7.0 source and retain it only if its byte-consumption and continuation semantics are confirmed.

Why: The patch parses remote RFB data, and direct inspection of the authoritative dependency source was unavailable in this review environment.

Before merge

  • Remove trailing whitespace from the noVNC patch (P3) - git diff --check 2640154bcf801cd18f92fa20b5c4172f0539b284..8211f9f3f7d3d61a0ee63646309555712d807c78 reports trailing whitespace on this line. Remove it so the registered package patch is clean and deterministic.
  • Resolve security concern: Confirm noVNC clipboard framing before merge - The local patch changes consumption of ignored extended clipboard payload bytes from a remote RFB peer. Verify byte-consumption and continuation semantics against noVNC 1.7.0 source before accepting it.
  • Resolve merge risk (P1) - The noVNC parser patch changes handling of untrusted RFB clipboard data without independently verified upstream framing evidence; an incorrect byte skip could desynchronize later frames.
  • Resolve merge risk (P1) - This bug-fix PR adds net 206 production lines across 108 files; maintainers should confirm that the wider orchestration is necessary owner-boundary consolidation.
  • Complete next step (P2) - Remove the whitespace-only patch line, then have a maintainer directly inspect and approve the exact noVNC 1.7.0 parser patch before merge.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

Agent review details

Security

Needs attention: The PR modifies an RFB parser dependency, but direct review of exact noVNC 1.7.0 source was unavailable; no separate supply-chain change was identified.

PR surface

Source +197, Tests +1649, Docs +16, Config +1, Other +31. Total +1894 across 59 files.

View PR surface stats
Area Files Added Removed Net
Source 23 535 338 +197
Tests 17 2064 415 +1649
Docs 5 26 10 +16
Config 4 8 7 +1
Generated 0 0 0 0
Other 10 115 84 +31
Total 59 2748 854 +1894

Review metrics

Metric Value Why it matters
Production vs test delta production +624/-418 (net +206); tests/support +2068/-417 (net +1651); docs +22/-10; package artifacts +34/-9 Material production growth accompanies broad regression coverage, so maintainers should verify the consolidation remains owner-boundary focused.
Review surface 108 files affected Coupled Gateway, agent, UI, scripts, and package changes need a whole-surface merge decision.

Stored data model

Persistent data-model change detected: serialized state: scripts/run-node-package-bin.mts, serialized state: ui/src/pages/chat/chat-pane-layout-render.ts, unknown-data-model-change: ui/src/pages/chat/chat-pane-layout-render.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the noVNC parser contract (recommended)
    Remove the whitespace line and compare the exact patch with noVNC 1.7.0 before accepting its RFB framing behavior.
  2. Pause the dependency modification
    Hold or split out the noVNC parser patch if its upstream framing contract cannot be independently confirmed.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
After the whitespace cleanup, attach direct noVNC 1.7.0 source comparison confirming the extended-clipboard payload framing.

Technical review

Best possible solution:

Remove the whitespace defect, verify the exact noVNC 1.7.0 framing contract, and confirm the broad added orchestration cannot be absorbed by a smaller owner-boundary refactor.

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

Unclear: source and paired regression tests define the repaired launch, lifecycle, diagnostic, and Desktop paths, but this read-only review did not execute a current-head reproduction.

Is this the best way to solve the issue?

Unclear: inspected ownership changes align with their callers and tests, but direct noVNC contract verification and approval of the broad consolidation remain outstanding.

Full review comments:

  • [P3] Remove trailing whitespace from the noVNC patch — patches/@[email protected]:7
    git diff --check 2640154bcf801cd18f92fa20b5c4172f0539b284..8211f9f3f7d3d61a0ee63646309555712d807c78 reports trailing whitespace on this line. Remove it so the registered package patch is clean and deterministic.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.69

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ff187401f6bb.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR supplies CI and live-behavior claims in its discussion; this read-only review independently established source and test coverage only.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: The PR targets worker launch, cleanup, and Desktop continuity failures that can disrupt agent execution and operator control.
  • merge-risk: 🚨 compatibility: The noVNC parser patch changes remote RFB clipboard handling without independently verified upstream framing evidence.
  • merge-risk: 🚨 availability: Worker launch and provider teardown changes can affect remote execution availability and recovery.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR supplies CI and live-behavior claims in its discussion; this read-only review independently established source and test coverage only.

Evidence

Security concerns:

  • [medium] Confirm noVNC clipboard framing before merge — patches/@[email protected]:14
    The local patch changes consumption of ignored extended clipboard payload bytes from a remote RFB peer. Verify byte-consumption and continuation semantics against noVNC 1.7.0 source before accepting it.
    Confidence: 0.83

Acceptance criteria:

  • [P1] git diff --check 2640154..HEAD.
  • [P1] Compare patches/@[email protected] with exact upstream noVNC 1.7.0 parser source.

What I checked:

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the trailing whitespace.
  • Perform or provide an exact noVNC 1.7.0 source comparison for the parser patch.

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 (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-03T16:34:57.002Z sha 875955e :: blocked before merge. :: none
  • reviewed 2026-09-03T17:31:45.880Z sha ed067fd :: blocked before merge. :: none
  • reviewed 2026-09-03T17:49:54.244Z sha 87cc255 :: blocked before merge. :: none
  • reviewed 2026-09-03T18:47:17.963Z sha 87cc255 :: blocked before merge. :: none
  • reviewed 2026-09-03T19:38:09.332Z sha 87cc255 :: blocked before merge. :: [P3] Remove trailing whitespace from the noVNC patch
  • reviewed 2026-09-03T20:26:31.062Z sha 87cc255 :: blocked before merge. :: [P3] Remove trailing whitespace from the noVNC patch
  • reviewed 2026-09-03T21:09:45.143Z sha ebaed97 :: blocked before merge. :: [P3] Remove trailing whitespace from the noVNC patch
  • reviewed 2026-09-03T21:35:27.704Z sha 8211f9f :: blocked before merge. :: [P3] Remove trailing whitespace from the noVNC patch

steipete added a commit that referenced this pull request Sep 2, 2026
…136018)

Restore macOS Command shortcuts at the shared CUA normalization owner while preserving Linux and Windows modifiers. Repair native-worker packaging, scratch placement, Windows tar paths, and the racy worker-receipt test fixture.

Verified with exact-head CI including native Mac/Windows jobs, canonical package and signed Mac app checks, and actual cloud-placed Mac/Windows CUA through WebVNC. Preserve the recorded model marker correction and unrelated historical failures; advanced held-pointer semantics remain a named follow-up.

Related cloud Desktop readiness and worker lifecycle follow-up: #136297.
Base automatically changed from codex/cua-macos-command-modifiers to main September 2, 2026 13:51
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling plugin: cua-computer labels Sep 2, 2026
@steipete
steipete force-pushed the codex/cloud-cua-session-readiness branch from f7d9b60 to 3381c24 Compare September 2, 2026 13:56
@openclaw-barnacle openclaw-barnacle Bot removed scripts Repository scripts docker Docker and sandbox tooling plugin: cua-computer labels Sep 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 2, 2026
@steipete
steipete force-pushed the codex/cloud-cua-session-readiness branch from 1009b91 to 75b92d6 Compare September 2, 2026 16:20
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 2, 2026
Keep pending desktop source selection until the node becomes available, and
refresh the visible picker through existing presence events. Consolidate
session lookup generations and remove the duplicate inventory adapter.

Retire the availability deadline at transport dispatch while retaining the
existing RPC/caller budgets and cancellation authority. Record in-band
provider failures through the existing redacted diagnostic error lifecycle,
sharing result and invocation observation without changing stream cleanup.

Verified with failing-before/passing-after regressions, 47 Desktop tests,
67 launch-owner/sibling tests, 44 diagnostic tests, the full selected static
gate, and managed Codex P0 review. Live native acceptance follows in the
canonical build; the two Windows provider failures remain unresolved.

Follow-up to #136018 and #135582.
A node can connect before its computer commands are approved. Refresh the existing Desktop inventory owner on capability approval and runner-inventory changes, preserving explicit picker choices and active connections.

Extend the five-presenter regression table: ten cases fail before the repair; all 57 Desktop owner and sibling tests plus the changed-file gate pass.
@clawsweeper clawsweeper Bot added 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 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 3, 2026
Reuse main's canonical model diagnostic lifecycle and preserve abort
precedence in its terminal observer. Keep upstream output-root guards and
performance-validator arguments alongside package-scoped UI tool launching.

Verified the abort regression before and after the owner repair, focused
diagnostics and launcher tests, Desktop units and browser scenarios, the
full changed-file gate, and structured Codex review. The separate noVNC
clipboard parser defect remains open pending its dependency repair.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 3, 2026
Merge current main and absorb paired-device abandonment into one exact-owner
environment destroy flow. Retain disconnected worker cleanup scope until a
physical stop is acknowledged; retries preserve the committed Continue on
Gateway decision instead of rewriting its marker and generation.

Apply the approved noVNC 1.7.0 patch to consume ignored extended clipboard
payloads before parsing the next RFB message. Register the exact patch version
and removal criteria. Preserve main dashboard/board layout with explicit
Desktop source, connection, control, and popout lifetime handling.

Release-note context: WebVNC remains connected when a view-only client receives
extended clipboard data; paired-device recovery keeps pending physical cleanup
without preventing Continue on Gateway. No new config, protocol, or schema.
@steipete
steipete requested a review from a team as a code owner September 3, 2026 16:09
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 8211f9f3f7d3d61a0ee63646309555712d807c78
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

Refresh cloud CUA readiness over main d1b7a76. Move viewer-only English
behind the existing lazy catalog owner while keeping shared shell and setup
labels eager. Preserve the complete catalog's keys, values, and source order.
Shorten redundant reconnect guidance without losing recovery instructions.

The canonical startup comparison now measures 349686 B against the unchanged
350141 B limit; the previous merged candidate measured 350158 B. Component
57 and browser39 tests pass, including the real noVNC clipboard parser and
Desktop session/source lifecycle cases. Catalog composition tests and a
byte-identical ordered English snapshot pass. Managed P0 review is clean.
The full changed-file gate is still running; packaged live proof remains.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
@clawsweeper clawsweeper Bot added 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
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: macos App: macos app: web-ui App: web-ui dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant