Skip to content

fix(ui): Desktop does not follow the chat session machine - #132255

Merged
steipete merged 6 commits into
mainfrom
codex/cloud-cua-vnc-integration
Aug 29, 2026
Merged

steipete merged 6 commits into
mainfrom
codex/cloud-cua-vnc-integration

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #132239

What Problem This Solves

Opening Desktop from a chat session showed the generic picker instead of that session's machine. Paired-device popouts could not resolve their node, stopped cloud sessions could select the Gateway desktop, and a panel opened before readiness stayed stuck. Live verification also found that an already-open popout retained its old paired desktop after the worker was stopped.

Why This Change Was Made

Chat already owns the current session projection, so it now passes that target into the existing Desktop panel. Session popouts retain the session key and use the existing exact-session lookup. Their focused-session controller follows the existing session event stream, resolves current placement, and retires the old connection only when its target changes. The panel owns RFB/input cleanup and rejects stale observations. A separate lookup revision prevents a control-mode change or an older response from hiding a reclaim.

Only active, available placement owners produce an automatic target. Paired placements map to their actual node; cloud placements map to their environment. Provisioning, offline, and stopped remote placements do not fall through to the Gateway. The global command-palette Desktop action still opens the generic picker, including on chat routes and after inventory-error retry. Explicit source requests retain precedence.

This reuses the placement resolver, session subscriptions, inventory filter, and shared panel lifecycle. It removes the obsolete focus wrapper and document-target wrapper. It adds no configuration, storage, protocol, permission, or CUA enablement change.

User Impact

The session header opens the right machine, an early-open panel attaches when that machine becomes available, and both embedded and focused viewers follow placement changes and stops. View-only remains the default; existing credential, control, retry, and standalone picker behavior remains available.

Evidence

Pre-fix failing browser reproductions cover automatic embedded selection, paired-device mapping, reclaimed placement, readiness recovery, the global picker, and open-popout retirement for execution-node/device/cloud sessions. Component tests cover immediate connection release, delayed inventory, stale observations, control changes during lookup, overlapping session lookups, and listener cleanup.

The focused repair passed 36 combined document/panel/rail browser cases before mechanical extraction; the final extracted source passed all 16 document browser cases and 5 component cases. The final browser run exited 0 after green results with a fork-termination warning during harness shutdown. Canonical targeted typed lint, formatting, diff checks, and fresh independent Codex autoreview passed. CI run 33231110312 exposed a newer-main test-helper race: it waited for dropdown.open = false before Web Awesome had finished hiding its popup. Both new palette cases failed with that helper locally. The test-only correction waits for popup inactivity and submenu disappearance, preserving the removal of the unreliable event Promise. All 52 cases across its seven consumer suites then passed, followed by both palette cases again after a lint-only boolean simplification. Final targeted typed lint passed and isolated autoreview was clean. Full hosted CI: run 33232123771 passed on final head 9a8bed79c9b43768afce75e3ade66f2396447607, including the required openclaw/ci-gate..

Local broad typechecking uses a shared installation with unrelated stale Google SDK, markdown-it, and pi-tui types; it is not claimed as green. Exact-head hosted CI owns the complete dependency/type/lint verification.

Actual cloud and paired-device proof

Actual UI-created cloud and paired-device sessions ran real model turns against an isolated Gateway and real AWS desktop. With UI b799acdeb6ec418d78bedbe90cda25f32971e764 and backend 9e89c990445d3cdb0e718f02792c31907588a0a9, the global palette made zero observations; session-header Desktop and its popout observed the same cloud environment, and the paired session observed its actual node instead of its worker environment. The cloud desktop accepted a synthetic marker through VNC control and launched Chromium. Normal UI stop/reclaim left the embedded viewer unavailable.

Final head 9a8bed79c9b43768afce75e3ade66f2396447607 changes only a browser test helper after the live-tested production commit; production source is identical. The additional popout-lifecycle proof used the exact frozen source committed as 97fcfa93ef181ba35d1a136e8f6b945719b48ab3, built as cloud-cua-focused-lifecycle, with the same backend 9e89c990445d3cdb0e718f02792c31907588a0a9. This is explicitly a candidate UI/custom-root test against that prepared backend, not a claim that both processes ran the final source tree. The bundle was built before committing, so its footer retained base b799acdeb6; its asset-manifest SHA-256 is af5fe5c53ef7a05ac4b5d8d854bf1562b2362fcd175a7cd3be3a7b6d595242ca.

A fresh paired-only desktop session produced the real reply “Focused desktop lifecycle proof ready.” Opening Desktop from the session header and its real popout created two successful view-only node observations. Both showed the same foreground synthetic marker. Renaming the session through the UI kept both canvases connected and the observation count at two. Then Runs on device → Stop device worker → Confirm returned a reclaimed placement: both the embedded canvas and the already-open popout disappeared and showed unavailable, while the paired node remained available in inventory. The observation count stayed at two: no fallback or unintended reconnection.

Real cloud desktop, same session in the focused window:

Real cloud desktop

Final focused paired desktop before stopping its worker:

Real focused session desktop before stop

The same already-open popout after stop, with the underlying node still available:

Open popout retires the stopped session desktop

The embedded viewer after the same stop:

Embedded viewer retires the stopped session desktop

All captures were inspected before upload and contain only the isolated task's synthetic UI/desktop. Both proof runs were cleaned up: no task leases or checkpoints remain; the final Gateway, tunnel, browser context, and harness are stopped. No operator settings or unrelated resources were changed.

Before and after (browser fixtures)

These two images use a synthetic browser fixture; they are not the live VNC evidence above.

Before — session Desktop stops at the generic picker:

Before: generic desktop picker

After — session Desktop resolves its machine automatically:

After: session desktop connected

Scope and Review

Production +171/-85 (net +86); tests/test-support +447/-63 (net +384); docs +6/-0. The production increase adds the missing event-driven focused-session lifecycle, including exact lookup, stale-response fencing, and subscription cleanup. The owner extraction keeps the panel under its file-size limit; obsolete wrappers are deleted instead of retaining another path. No new configuration/default surface.

ClawSweeper's earlier picker finding is fixed. Its live cloud/paired-device rank-up move is addressed by the observed proof above; the focused lifecycle discovered during that proof is included in this repair. The latest ClawSweeper review (03:37 UTC, 97fcfa93ef1) found no source defect and requested the CI failure/current-base verification be resolved. The shared-helper race is fixed, all affected production files were compared with main 56c2083fbdd, and final exact-head CI is green; no rank-up move is skipped.

Provenance: #122992 added direct session targeting. The tabbed-side-panel change #123874 removed that handoff; author @vyctorbrzezowski, merger @fuller-stack-dev, merged 2026-08-16. This is a main regression after the latest stable v2026.7.1-2. Current repair author: @steipete. Release-note context: session Desktop and its popout follow the active cloud worker, paired device, or local execution node, retire stopped owners, and preserve the global picker.

@clawsweeper

clawsweeper Bot commented Aug 29, 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 size: M maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 01:05
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 11:37 PM ET / August 29, 2026, 03:37 UTC.

ClawSweeper review

What this changes

This PR routes embedded and focused Control UI Desktop views to the active chat session’s machine and updates them when the placement changes, while retaining the global picker.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: current main still omits the chat-session Desktop handoff and maps paired-device placements to the wrong source. The introduced repair has no discrete source-level correctness finding, but its failed exact-head UI E2E shard must be resolved before merge.

Priority: P2
Reviewed head: 97fcfa93ef181ba35d1a136e8f6b945719b48ab3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a coherent owner-boundary repair with focused race and browser coverage; exact-head CI must still be resolved before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies claimed real cloud and paired-device after-fix evidence tied to the changed Control UI routing path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies claimed real cloud and paired-device after-fix evidence tied to the changed Control UI routing path.
Evidence reviewed 8 items Current main retains the reported gap: Current main builds a source-less focused Desktop URL and mounts the embedded Desktop panel without a session or placement target.
Current main selects device placements incorrectly: The existing resolver treats all active cloud-worker placements as environment targets, rather than using an available device runner’s node identifier.
Introduced owner-boundary repair: The branch passes the selected session target into the embedded panel, carries the session selector into the focused route, and maps active device runners to their node desktop while refusing non-active remote placements.
Findings None None.
Security None None.

How this fits together

The Control UI converts a selected chat session’s placement into a desktop source and opens an RFB viewer for it. When a session moves or stops, the panel must discard its old viewer and either resolve the new owner or show an unavailable/picker state.

flowchart LR
  A[Selected chat session] --> B[Placement projection]
  B --> C[Desktop source resolver]
  C --> D[Embedded or focused desktop panel]
  E[Session changed event] --> F[Session lifecycle controller]
  F --> C
  D --> G[RFB viewer]
  C --> H[Unavailable or picker state]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head hosted CI currently reports a failed UI E2E shard and failed CI gate; resolve or rerun it against the current head before merge.
  • Resolve merge risk (P1) - The repair adds net +86 production lines for placement-change lifecycle ownership and stale-operation fencing; the new owner is coherent, but current-base verification remains required.
  • Complete next step (P2) - Keep this maintainer-owned repair as the active candidate; resolve the exact-head UI E2E failure through normal PR validation rather than opening a separate repair job.
Agent review details

Security

None.

PR surface

Source +86, Tests +387, Docs +6. Total +479 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 9 171 85 +86
Tests 5 442 55 +387
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 619 140 +479

Review metrics

Metric Value Why it matters
Production versus test delta production +171/-85 (net +86); tests +442/-55 (net +387); docs +6/-0 The production growth is concentrated in the focused-session lifecycle controller and replaces obsolete wrappers; the large test delta covers placement and race behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Resolve the exact-head UI E2E failure, refresh against current main, and merge the canonical session-placement handoff with the focused-view lifecycle fencing intact.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Resolve the exact-head UI E2E failure, refresh against current main, and merge the canonical session-placement handoff with the focused-view lifecycle fencing intact.

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

Yes, source-reproducible: current main omits the embedded session/source binding and focused session selector, while the introduced browser cases exercise the affected placement states.

Is this the best way to solve the issue?

Yes. Passing the chat placement owner’s current target into the embedded panel and resolving focused views by exact session lookup avoids a duplicate source of truth and preserves the explicit global picker.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Control UI routing regression that creates unnecessary selection or a wrong desktop source for affected session views.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies claimed real cloud and paired-device after-fix evidence tied to the changed Control UI routing path.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the current repair and the earlier merged direct-session Desktop work; history centers the affected panel and placement paths on this area. (role: recent desktop feature owner; confidence: high; commits: 97fcfa93ef18, 2464c17ab560; files: ui/src/components/desktop/desktop-panel.ts, ui/src/pages/chat/chat-pane-placement.ts)
  • vyctorbrzezowski: Merged history identifies this contributor’s tabbed-side-panel change as the adjacent refactor that owns the embedded-panel integration surface. (role: tabbed chat-panel contributor; confidence: medium; commits: aed4510bd094; files: ui/src/pages/chat/chat-pane-embedded-panels.ts, ui/src/pages/chat/chat-pane-layout-render.ts)

Rank-up moves

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

  • Resolve or rerun the failed exact-head UI E2E shard against the current base and confirm the CI gate is green.

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 (7 earlier review cycles)
  • reviewed 2026-08-29T01:14:37.132Z sha f756775 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:26:05.614Z sha 58f8ff1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:34:17.187Z sha 58f8ff1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:48:14.142Z sha 5dd58db :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T02:01:21.934Z sha 142cd51 :: needs changes before merge. :: [P1] Preserve the generic Desktop palette action
  • reviewed 2026-08-29T02:10:57.239Z sha 142cd51 :: found issues before merge. :: [P1] Preserve the generic Desktop palette action
  • reviewed 2026-08-29T02:45:34.694Z sha b799acd :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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 Aug 29, 2026
@steipete
steipete force-pushed the codex/cloud-cua-vnc-integration branch from 5dd58db to 142cd51 Compare August 29, 2026 01:53
@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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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. labels Aug 29, 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. labels Aug 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The earlier picker finding is fixed, and isolated live cloud and paired-device sessions now confirm the session header and popout select the correct real RFB desktop while the global palette makes no automatic observation.

That live run also exposed a missing lifecycle subscription: an already-open session popout retained the old paired desktop after the worker was stopped. Commit 97fcfa9 adds a focused-session controller using the existing session event stream and exact session lookup. Unchanged placement retains the connection; changed or reclaimed placement retires it through the shared panel owner. The three execution-node/device/cloud browser regressions failed before the repair and pass afterward; connection-race tests cover control changes and overlapping lookups. Final live stop/reclaim verification and exact-head CI are running before landing.

@clawsweeper

clawsweeper Bot commented Aug 29, 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:

@steipete
steipete merged commit 2099719 into main Aug 29, 2026
166 checks passed
@steipete
steipete deleted the codex/cloud-cua-vnc-integration branch August 29, 2026 04:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…32255)

* fix(ui): keep session desktops connected to their execution machine

* refactor(ui): remove obsolete desktop focus wrapper

* test(ui): cover session desktop authentication in side rails

* fix(ui): preserve the global desktop picker on chat routes

* fix(ui): follow session placement changes in desktop popouts

* test(ui): wait for desktop menu transitions to finish
steipete added a commit that referenced this pull request Aug 29, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 29, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 29, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 29, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 29, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 30, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 30, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 30, 2026
Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.
steipete added a commit that referenced this pull request Aug 30, 2026
* fix(cloud): bind computer control to session desktops

Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in #132255.

* test(worker): own computer observation persistence coverage

* fix(cloud): preserve native workspace lifetime beyond RPC expiry

* fix(cloud): close computer execution with worker connection

Keep prepared computer state, its bound connection and cleanup promise under
one Gateway owner. An idle disconnect now closes the captured native
execution, fences reconnect input, and lets shutdown join the native ACK.
Reject missing or competing connection lifetimes without affecting durable
session RPCs or Codex's local host binding.

Cover the actual WebSocket completed-action disconnect, same-claim owner
replacement, fresh-turn recovery, retained handles and concurrent cleanup.
Document the recovery action and add the cloud computer control changelog.

* fix(codex): keep computer tools outside native code mode

* fix(cloud): retain shared desktop cleanup completion ownership

* test(codex): refresh direct-only feature prompt snapshots

* fix(gateway): keep idle desktop streams alive

Share the control connection's WebSocket keepalive scheduler with desktop
observers and node desktop/portal streams. Preserve the main connection's
missed-pong policy without treating remote stream backpressure as revocation.
Retire auxiliary timers with their existing transport owners.

Cover idle control frames, exact stream bytes after remote pause/resume, and
owner-driven close cleanup with real WebSocket regression tests.

* test(cloud): clear stale desktop runtime during bootstrap

* docs: leave cloud release notes to release automation
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
* fix(cloud): bind computer control to session desktops

Route the shared computer tool through the exact admitted session placement
for OpenClaw workers and Codex remote execution. Keep disposable desktop
commands private, settle native provider readiness before enrollment, and
preserve screenshot media through bounded worker transport and replay.

Close owned native executions before terminal delivery and allow exact
pending node replies to complete during Gateway shutdown. Serialize cloud
workspace result ref mutations across linked worktrees without serializing
uploads, and preserve durable result recovery with atomic Git ref moves.

Document tool policy, desktop setup, image limits, and operator handoff.
Related UI integration landed in openclaw#132255.

* test(worker): own computer observation persistence coverage

* fix(cloud): preserve native workspace lifetime beyond RPC expiry

* fix(cloud): close computer execution with worker connection

Keep prepared computer state, its bound connection and cleanup promise under
one Gateway owner. An idle disconnect now closes the captured native
execution, fences reconnect input, and lets shutdown join the native ACK.
Reject missing or competing connection lifetimes without affecting durable
session RPCs or Codex's local host binding.

Cover the actual WebSocket completed-action disconnect, same-claim owner
replacement, fresh-turn recovery, retained handles and concurrent cleanup.
Document the recovery action and add the cloud computer control changelog.

* fix(codex): keep computer tools outside native code mode

* fix(cloud): retain shared desktop cleanup completion ownership

* test(codex): refresh direct-only feature prompt snapshots

* fix(gateway): keep idle desktop streams alive

Share the control connection's WebSocket keepalive scheduler with desktop
observers and node desktop/portal streams. Preserve the main connection's
missed-pong policy without treating remote stream backpressure as revocation.
Retire auxiliary timers with their existing transport owners.

Cover idle control frames, exact stream bytes after remote pause/resume, and
owner-driven close cleanup with real WebSocket regression tests.

* test(cloud): clear stale desktop runtime during bootstrap

* docs: leave cloud release notes to release automation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

Desktop panels should follow the session execution machine

1 participant