Skip to content

fix: keep Mac desktops available and resolve session views directly - #144226

Merged
steipete merged 24 commits into
mainfrom
codex/cua-ready-desktop
Sep 11, 2026
Merged

steipete merged 24 commits into
mainfrom
codex/cua-ready-desktop

Conversation

@steipete

@steipete steipete commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where Mac Computer sessions lost access to an idle desktop or retained stale work after a lock or disconnect. Session Desktop links also waited for unrelated environment discovery and could remain on Retry after a machine disappeared. Ready-worker refill could fail after the seed session's worktree was archived, and reserve cancellation or confirmed provisioning cleanup could leave teardown unfinished.

Live validation also found two defects: launching a discovered Mac app used an argument unsupported by the Mac driver, and approving a connected node's changed capabilities removed its hosting capacity until it reconnected.

Why This Change Was Made

The native desktop owner holds bounded assertions for authorized executions, retires stale executions, and releases execution-scoped held input on lock, expiry, cancellation, or route loss. The existing device-settings bridge provides an explicit unattended-hosting confirmation and reports locked, unlocked, or unknown state. Manual lock remains effective, and Screen Sharing supplies normal sign-in. Physical cancellation of an already-running driver gesture remains a separate limit below.

The Desktop presenter resolves the exact session and environment before loading global inventory. Missing machines return to the picker; temporary failures retain Retry. Prepared snapshots retain the admitted commit through the canonical repository and managed archive owner. Reserve cancellation uses the existing cancellation owner; confirmed provider cleanup finalizes teardown and enrollment ownership while preserving the original error. Uncertain cleanup remains owned for recovery.

After reapproval, the Gateway notifies the exact authenticated connection to republish current runner facts through the shared publication owner. Generation fences reject late acknowledgments and replaced routes, without interrupting active invocations or forcing hosting on. Mac app launch uses its discovered bundle identifier or name; Linux and Windows retain their platform-specific launch paths.

Compatibility follows the existing owners: unattended hosting is a new native preference that defaults off and requires confirmation, without changing macOS power or lock settings. Lock recovery intentionally requires normal sign-in and a fresh Computer execution. Bundled provider cleanup and the SDK ship together; arbitrary independently installed version combinations are outside the package proof. This change adds no SQLite DDL or schema version; durable cleanup uses the existing lifecycle, with close/reopen and upgrade-continuity evidence below.

User Impact

Mac Computer jobs can keep an authorized desktop available, and operators can opt into keeping an unlocked hosting Mac awake between jobs. Desktop links open directly, ready-worker refill survives seed cleanup, capability reapproval restores current hosting capacity, and discovered Mac apps launch through the supported native interface. Existing expiry, consent, and cleanup authority remain in effect.

Evidence

Current validation

The reviewed head is 41c9584. Exact-head CI passed on attempt 1: 133 jobs succeeded and six were skipped, including successful Android Play, macOS, iOS, planner, and real-Gateway UI lanes. Merged as cc0d3ca through the native maintainer workflow. Main advanced during CI; after merge, 214 planner and precise-owner tests passed on the exact merged commit, including the newly combined upstream packing behavior. This focused proof is separate from the reviewed-head hosted CI. Live Mac and serving-Gateway evidence below remains labeled 7355191; the full current app and runtime are not identical to that build.

  • The final CI planner repair preserves the 80-job cap, complete file coverage, timing floors, family/process isolation, and worker budgets. It considers every eligible overflow group for balanced refinement, then permits at most one deterministic same-family donor-to-tail move. Exact tooling-file eligibility is checked before ranking. All 213 focused planner/precise-selection tests passed, as did 56 planner tests on each retained CI/main snapshot, changed-file checks, and independent P2 review. Eighteen complete normal plans remained byte-identical. A single loaded-host growth probe completed in 227.2 ms where the original refused after 143.6 ms; this is not a latency distribution or a claim of optimal packing for every inventory. Unsatisfied constraints still produce a refusal.
  • The latest merge retains main's Zod schema, inferred types, and parsed-state owner for native device settings, adding the existing optional unattended-hosting boolean, desktop-availability enum, and setting key. Main's unextended adapter failed 37 of 43 tests in the expanded PR coverage; the resolved adapter passed all 71 native parser/device/Desktop/bridge tests and 56 planner tests on the merged inventory. Publication covers locked/true, unlocked/false, unknown/true, and absent optional values; malformed inputs, iOS, and settlement coverage remain. Changed-file checks and independent P2 review passed. Fourteen critical native/CUA/worker/protocol objects match 7355191; the UI adapter has new source-level proof, not new current-head live proof. Incoming chat/catalog/auth work, release metadata, Bonjour logging, and SQLite worker-registration changes prevent a whole-app or whole-runtime equivalence claim.
  • Prior CI on add8f2a exposed a Wear fixture race: it spent 150 ms of a 200 ms channel-discovery window before releasing the replacement transport. The test now observes actual reservation through the old owner's stop callback, then deliberately holds bounded cleanup for 300 ms to cross that discovery deadline. The 200 ms discovery and 1,000 ms assertion deadlines remain unchanged; cleanup releases and joins the callback. On macOS with Gradle 9.7.1 and Temurin 21.0.12.1+1, the full registry class passed 22 tests, a temporary deadline-wrap mutant failed the intended single null-claim case, and the restored class passed all 22 again. Kotlin test-source lint and independent P2 review passed; no production mutation remains. This does not resolve that CI run's separate Play failure: Temurin 21.0.10 crashed in libjvm (Node::uncast, SIGSEGV, exit 134). The local pass is not a Linux CI rerun or a toolchain fix. The final 41c9584 hosted Android Play lane passed; the prior JVM crash did not recur, but its cause remains unproven.
  • The real-Gateway UI fixture now waits for the visible Send button to become enabled before submitting, preserving its assertions and timeouts. Main allows drafting while history is loading; the failed run on 2b4f7cf sent neither a model-change request nor a chat message. The repair passed a fresh build, seven focused real-Gateway/readiness tests, changed-file checks, and independent review; the passing recording shows one model-change request and the expected persisted thinking state.
  • Main's FTS view-collision owner is retained unchanged, with the equal-count-view regression preserved. The regression fails on the original defect and verifies that the colliding view remains intact. All 45 focused FTS/schema/temporal tests and selected changed-file checks passed after an isolated frozen install resolved a borrowed-dependency typechecker refusal. Earlier related FTS/temporal and Git-execution proof passed 143 cases with one existing Windows-only skip. No memory schema version, DDL, or migration is added. Main also already contains the session-link layout-test repair; its duplicate was removed, and all 45 selected combined-source UI/worktree-removal cases passed.

Live and package proof

CI on live-tested 7355191 passed with 135 successful jobs and six skips. Three jobs were initially cancelled before runner assignment, with no steps executed; the unsuccessful-job rerun completed all three. The affected native suites passed all 125 identified cases, including reapproval; the complete macOS run passed 2,174 tests across 240 suites and the shared kit passed 1,695 across 132 suites. The reapproval repair also passed 227 focused tests and the complete changed-file gate, including 1,147 macOS TypeScript harness tests. Focused Gateway, plugin, Desktop browser, refill, cancellation, and cleanup proof passed with independent review.

  • Signed Mac launch, reapproval, and lock recovery: the 7355191 ARM artifact passed 120 verification commands, all 22 native payload checks, both worker-readiness orders, and archive round-trip validation. Its bundled Node/plugin passed the two Darwin launch-mapping cases against a synthetic MCP peer; the original registered launch defect and both regression cases failed before repair, and all 21 platform cases passed after it. In the QA VM, registered discovery, TextEdit launch, typing A, native readback, and independent capture passed. Reapproval used an explicitly labeled request with the node's unchanged capability surface and normal approval RPC: app, driver, worker, and connection stayed unchanged, one hosting slot returned, and the existing execution's window reference still read the document. After normal Lock Screen and 6.735 seconds locked without input, normal sign-in preserved the processes. The old execution's attempted B failed with COMPUTER_EXECUTION_CLOSED; a fresh execution read A, appended C, and read AC. Both executions were closed.
  • Unattended-on interval completed and restored: signed 7355191 remained unlocked for 1,333.856 seconds (22 minutes 13.856 seconds), with 24 passive samples, unchanged identities, both OpenClaw assertions, strictly increasing HID idle time, and no guest input or Computer calls during the interval. No RFB or caffeinate helper was present at baseline or end; the power policy stayed unchanged, and macOS recorded the OpenClaw display-idle assertion as the reason sleep was blocked. One Parallels process-read error succeeded on a single repeated read and remains recorded. End evidence completed before the next input. A fresh registered execution then read AC, appended D, and read ACD, confirmed by an independent visible capture; it was explicitly closed. Screen Saver Never, password After 5 minutes, keyboard navigation, unattended hosting off, and the complete original power policy were restored. There are no active Computer executions or OpenClaw assertions, and the passive observer is joined. This phase required no app or Gateway restart.
  • Off comparison remains a different artifact: signed 49e16c6 in the isolated macOS 26.6.2 ARM VM passed snapshot, observation, typing/readback, and capture. With unattended access off and no input or helper assertions, macOS automatically locked at its configured 20-minute threshold; the final observation was after 23 minutes. That artifact's on interval never started because opt-in setup did not reach a stable baseline. Its off result is reused only for identical availability owners; the completed 7355191 on interval does not make this a same-artifact A/B test. Earlier signed Intel evidence covers locked-state rejection, normal sign-in, capture, app-owned assertions, unattended confirmation, background control, and manual-lock release of held input. Those results retain their original artifact identity and do not certify physical cancellation of the pinned driver's long gesture.
  • Gateway and package continuity: the serving 7355191 dev Gateway passed qualification against the original immutable state snapshots, RPC/health/readiness, and a zero-error startup audit. All changes were accounted for, including an existing idle worktree retirement whose 21 retained files matched its Git snapshot by content and mode. The raw database comparison remains non-identical; qualification neither rewrote snapshots nor replayed the update. The original maintenance lock was preserved and the canonical lock released after fresh same-process proof. In the sealed package, the compiled Crabbox producer, public SDK export, and Gateway consumer resolve the same WorkerProviderError module; confirmed/indeterminate cleanup, original cause, lease identity, and forged shapes pass. Separate retained source tests cover real SQLite close/reopen, enrollment retirement, and no provisioning replay. This combines package-binding and source lifecycle evidence; it does not claim an induced real provider failure across a packaged restart.

Historical CI on 49e16c6 passed with 135 successes and six skips. CI on 9a7c2074 and 2b4f7cf each finished with 133 successes and six skips, with the respective layout/readiness test failures described above. These runs are not final-head CI. The earlier 49e16c6 dev Gateway passed session/transcript continuity, database integrity, unchanged auth stores, RPC/health, and startup audit; verification-only recovery reconciled plugin-index projection and update-check time against original snapshots and released its lock without another restart. An earlier Matrix Doctor timeout remains unexplained; its timeout was not increased.

Remaining limits

The broader startup performance goal remains unproven. Three real ready-worker diagnostics reached the original exact-color criterion in 10.266, 24.089, and 21.919 seconds, with stable desktop/node observations and verified OpenAI API-key inference. Connected canvases appeared in 3.738–4.270 seconds. A separate same-session reconnect showed an inspected complete desktop 503.9–525.0 ms after canvas creation while one color remained one shade off for over a minute; the trace confirms noVNC JPEG decoding. This reveals a limitation of the exact-color criterion, but does not retroactively pass those timings or establish warm p95. The remaining cohort, burst, restart, and expiry evidence is unfinished, and cold allocation still takes minutes. Those diagnostic workers and the naturally expired spare were cleaned up. After supported browser-bootstrap recovery, two separately admitted 7355191 diagnostics ran: a reserve-miss cold allocation and a warm run consuming the exact ready refill. The first readable pairs appeared in 277.419 seconds and 5.691 seconds respectively; the warm controlled pair appeared at 10.093 seconds. Both visual usability checks failed: an Xfce notification-selection dialog persisted through every expected File-menu capture, with no confirmed menu opening. Escape later dismissed the dialog. These results do not pass the usable-desktop or p95 target. The source comparison shows no PR-added desktop-session or panel start; the specific dialog cause remains unproven. Both runs disposed observers, disconnected their viewers, reclaimed and archived their sessions, and confirmed worker cleanup. Both sessions also returned exactly READY through the OpenAI Responses API-key route; the particular credential identity was not captured per run. The observed refill retired after its original expiry, and the later warm activation produced one further reserve under its own fixed 15-minute demand window. That reserve also retired naturally. Final inventory is zero active workers, zero reserves, and zero pending capacity. The original single-reserve watcher remains recorded as unresolved because it required immediate global zero; separate root reconciliation preserves that result and proves the final cleanup. The two earlier browser preflight failures remain retained.

A 10-second CUA drag continued for about 9.992 seconds despite a 3-second invocation deadline. The pinned CUA 0.22.2 gesture has no cooperative physical cancellation. This PR does not patch that dependency or claim that case passed. Earlier isolated provider timeout/host-loss failures also remain recorded; subsequent healthy workers do not establish their causes.

Before: synthetic desktop has no lock-state notice

After: locked desktop explains normal sign-in

Before: synthetic Mac settings

After: unattended desktop hosting enabled

@clawsweeper

clawsweeper Bot commented Sep 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 11:23 AM ET / 15:23 UTC (Revision 28).

ClawSweeper review

What this changes

The branch adds consented Mac keep-awake behavior, resolves session desktops directly, repairs worker cleanup and capability refresh, and adjusts supporting tests and CI planning.

Merge readiness

⛔ Blocked before merge - 3 items remain

This PR remains useful: current main lacks its central desktop-availability and direct-resolution changes. No blocking introduced defect was found; the prior compatibility concern is explicitly addressed by the maintainer-authored description and signed recovery evidence.

Priority: P2
Reviewed head: 41c9584f2c033224e49382fafde272ed6fdfc470

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent repairs with substantial native evidence and no blocking finding; documented compatibility boundaries remain visible.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Signed 7355191 Mac observations exercise registered launch, reapproval, lock revocation, fresh-execution recovery, and unattended hosting: the old execution cannot append B after sign-in, while a fresh execution reads A and produces AC, then ACD after the idle interval. The relevant native owners remain unchanged at this head; newer settings-parser coverage is supplemental, and whole-app equivalence is not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Signed 7355191 Mac observations exercise registered launch, reapproval, lock revocation, fresh-execution recovery, and unattended hosting: the old execution cannot append B after sign-in, while a fresh execution reads A and produces AC, then ACD after the idle interval. The relevant native owners remain unchanged at this head; newer settings-parser coverage is supplemental, and whole-app equivalence is not claimed.
Evidence reviewed 10 items Pinned introduction and clean checkout: Reviewed the complete local merge-base-to-head file inventory and production hunks at the pinned head. The supplied test merge is stale and was not used to claim removal of current-main behavior. The diff whitespace check passed and the checkout remained clean.
Complete proof description recovered: Read the full GitHub PR body, including previously omitted package continuity and remaining-limit sections. Its 14,837 UTF-16 units and SHA-256 c72c7c23e4598e5e8cbce97a3f0e1b0f0442cae0115720915ffc6882004c1683 match the supplied snapshot. It records signed 7355191 native launch, lock recovery, reapproval, and a 1,333.856-second unattended interval; the off comparison remains explicitly attributed to 49e16c6.
Execution authority and native proof continuity: Admission and validation require a connected, unlocked desktop and a current active execution record. Lock, expiry, and route retirement revoke permits; cleanup tracks execution-specific input. A direct comparison found no changes since live-tested 7355191 in the availability coordinator/platform, action service/executor, Mac worker/runtime, cleanup owner, SDK error contract, or Mac app-launch mapping.
Findings None None.
Security None None.

How this fits together

The Mac node receives authorized Computer requests from the Gateway and turns them into native desktop actions. Its availability owner controls execution lifetime and keep-awake assertions, while the web Desktop panel resolves the session’s machine and displays its current state.

flowchart TD
  A[Gateway Computer request] --> B[Mac execution owner]
  C[Console state and hosting consent] --> B
  B --> D{Execution still allowed?}
  D -->|Yes| E[Native desktop action]
  D -->|No| F[Refusal and scoped cleanup]
  C --> G[Gateway environment status]
  G --> H[Session Desktop panel]
Loading

Before merge

  • Resolve merge risk (P1) - Existing Mac automation intentionally refuses locked or unknown console state and requires normal sign-in plus a fresh execution; signed recovery evidence covers this behavior.
  • Resolve merge risk (P1) - The new provider cleanup result relies on the documented jointly shipped SDK/provider contract; arbitrary independently installed version combinations are outside the package proof.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Native preference 1 new Boolean preference, default off Unattended hosting requires explicit native confirmation and does not rewrite macOS power settings.
Implementation and regression growth Production +1,494 net lines; tests/support +2,801; tooling +126 The body justifies growth through execution lifecycle ownership, direct desktop resolution, and cleanup recovery; these counts exclude docs and generated artifacts.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Retain the documented compatibility boundary (recommended)
    Accept the already-stated normal-sign-in recovery behavior and jointly shipped cleanup API, supported by signed native recovery and package-continuity evidence.

Technical review

Best possible solution:

Keep one native execution owner, preserve explicit hosting consent and normal sign-in recovery, and ship the documented provider cleanup contract with its matching SDK and consumer.

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

Yes, source establishes the inventory-first desktop lookup and missing confirmed-cleanup handling on fetched main; the PR also records signed native before/after behavior. This read-only review did not execute a reproduction.

Is this the best way to solve the issue?

Yes, the changes extend the existing native, Desktop, publication, and teardown owners, with explicit compatibility decisions and focused regression coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The PR repairs bounded desktop and worker reliability problems without evidence of an urgent product-wide outage.
  • merge-risk: 🚨 compatibility: Mac lock recovery changes existing execution behavior, and provider cleanup gains an additive public SDK result with a documented package boundary.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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): Signed 7355191 Mac observations exercise registered launch, reapproval, lock revocation, fresh-execution recovery, and unattended hosting: the old execution cannot append B after sign-in, while a fresh execution reads A and produces AC, then ACD after the idle interval. The relevant native owners remain unchanged at this head; newer settings-parser coverage is supplemental, and whole-app equivalence is not claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Signed 7355191 Mac observations exercise registered launch, reapproval, lock revocation, fresh-execution recovery, and unattended hosting: the old execution cannot append B after sign-in, while a fresh execution reads A and produces AC, then ACD after the idle interval. The relevant native owners remain unchanged at this head; newer settings-parser coverage is supplemental, and whole-app equivalence is not claimed.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the complete local merge-base-to-head file inventory and production hunks at the pinned head. The supplied test merge is stale and was not used to claim removal of current-main behavior. The diff whitespace check passed and the checkout remained clean. (41c9584f2c03)
  • Complete proof description recovered: Read the full GitHub PR body, including previously omitted package continuity and remaining-limit sections. Its 14,837 UTF-16 units and SHA-256 c72c7c23e4598e5e8cbce97a3f0e1b0f0442cae0115720915ffc6882004c1683 match the supplied snapshot. It records signed 7355191 native launch, lock recovery, reapproval, and a 1,333.856-second unattended interval; the off comparison remains explicitly attributed to 49e16c6. (41c9584f2c03)
  • Execution authority and native proof continuity: Admission and validation require a connected, unlocked desktop and a current active execution record. Lock, expiry, and route retirement revoke permits; cleanup tracks execution-specific input. A direct comparison found no changes since live-tested 7355191 in the availability coordinator/platform, action service/executor, Mac worker/runtime, cleanup owner, SDK error contract, or Mac app-launch mapping. (apps/macos/Sources/OpenClaw/MacDesktopAvailabilityCoordinator.swift:168, 41c9584f2c03)
  • Compatibility disposition: The native preference defaults off, enabling it uses the existing confirmation bridge, and documentation explains normal sign-in followed by a fresh execution after lock. The full PR body expressly accepts that behavior. The latest settings adapter retains main’s Zod owner and adds optional typed fields; its new validation is source-level evidence, not a claim of a fresh whole-app live run. (ui/src/app/native-device-settings.ts:57, 41c9584f2c03)
  • Worker cleanup and upgrade coverage: Confirmed cleanup uses the existing teardown owner, checks operation/epoch identity, retires enrollment, and preserves the original failure. The additive public cleanupComplete contract is documented, with producer/SDK/consumer module-identity evidence in the body. Regression coverage exercises real SQLite close/reopen and prevents provisioning replay; no schema DDL is introduced. (src/gateway/worker-environments/provider-owner-lifecycle.ts:210, 41c9584f2c03)
  • Still necessary on main: Fetched main still resolves document targets after inventory and lacks the new cleanupComplete contract. The availability coordinator is absent from both fetched main and the latest supplied release tag v2026.9.4. No verified merged replacement was established; the attempted GitHub canonical search was unavailable. (ui/src/components/desktop/desktop-session-controller.ts:94, 3c8a78472013)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • gaoanze888: 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 (27 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-11T07:32:02.575Z sha 9a7c207 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T08:26:44.519Z sha cfdcab309c714a3ce22b1cbf49d63a611db9d13d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T08:42:29.132Z sha 7355191 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T09:47:24.694Z sha 7355191 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T12:49:31.980Z sha 2b4f7cf :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T13:26:17.036Z sha add8f2a :: blocked before merge. :: none
  • reviewed 2026-09-11T14:32:27.932Z sha 55989cc :: blocked before merge. :: none
  • reviewed 2026-09-11T15:05:27.121Z sha 41c9584 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/cua-ready-desktop branch from 08722fe to 007cbee Compare September 10, 2026 17:31
@steipete
steipete marked this pull request as ready for review September 10, 2026 17:34
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 10, 2026
@blacksmith-sh

This comment has been minimized.

@blacksmith-sh

This comment has been minimized.

@steipete steipete self-assigned this Sep 10, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android agents Agent runtime and tooling labels Sep 10, 2026
@clawsweeper clawsweeper Bot removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 10, 2026
@steipete
steipete force-pushed the codex/cua-ready-desktop branch from 460d1a4 to d5d8323 Compare September 11, 2026 00:13
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 11, 2026
@steipete
steipete force-pushed the codex/cua-ready-desktop branch 2 times, most recently from 49e16c6 to ab59398 Compare September 11, 2026 06:27
@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 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 11, 2026
@blacksmith-sh

This comment has been minimized.

Rebalance one eligible file within its existing tooling family after bounded tail packing overflows. Preserve the 80-job cap, timing floors, complete inventories, process isolation, and ordinary plans.
Use the existing retirement callback to observe reservation before exercising bounded cleanup. Preserve discovery and assertion deadlines and release the held callback during cleanup.
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 11, 2026
Keep the canonical Zod parser, infer the existing desktop fields, and verify publication of locked, unlocked, unknown, and absent state.
@steipete
steipete merged commit cc0d3ca into main Sep 11, 2026
209 checks passed
@steipete
steipete deleted the codex/cua-ready-desktop branch September 11, 2026 15:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…penclaw#144226)

* fix: keep Mac desktops available and resolve session views directly

Keep authorized Computer executions awake with bounded native assertions, report locked/unknown desktop state, and offer explicit unattended hosting. Manual lock and route retirement revoke old executions without disturbing a successor or unrelated held input.

Resolve session desktops through exact session and environment status before unrelated inventory. Preserve retry for transient errors, recover missing sources to the picker, and refresh availability when the presenter reconnects.

* test: keep node host alive for inventory assertions

* refactor: remove unused Mac service protocol requirement

* fix(macos): preserve desktop parameter errors

Preserve command-specific malformed snapshot and computer.act errors at the execution-envelope guard, using the existing decoder and a shared response formatter. Include unattended hosting in the existing consent and setting-coercion coverage tables.

Verified the four original CI failures and eight lifecycle siblings with a signed Intel payload in an isolated native test run. Swift lint, formatting, schema guard, and independent review passed.

* fix(macos): preserve literal desktop error responses

Keep the two complete diagnostic strings at the response boundary so native translation discovery does not interpret a temporary command label as UI copy. The selection predicate, error code, and response messages are unchanged.

Verified unchanged native i18n inventory and generated artifacts, strict Swift lint and formatting, an isolated Intel compile, and independent review. Existing signed native regression proof remains applicable to the identical output contract.

* fix(macos): read console state from the registry root

The IOService plane root can be the hardware entry and omit IOConsoleUsers,
leaving an unlocked desktop unavailable to Computer work. Use the registry
root accessor while preserving CFBoolean, UID, lock, and release validation.

Live signed Swift proof calls the actual platform method before and
after the accessor repair on macOS 15.7.9.

* fix: refill prepared workers after session worktree cleanup

Retain the canonical Git donor while keeping the admitted session commit.
Reuse repository identity for immutable replays and preserve managed archive
snapshot retention. Cover archive removal, immediate Git pruning, store
reopen, pinned refill, bare donors, and idempotency rejection with real Git.

Validation: 130 focused and sibling tests passed, scoped changed checks,
and managed review with the retention finding resolved against the existing
archive owner and forced-pruning regression.

* test(android): await approval reconciliation before reconnect

Wait for the original resolution coroutine to finish its immediate readback
before replacing the test backend. The published unknown-outcome message
precedes that read and was not a completion barrier. Preserve the exact
reconnect request-order assertions and existing timeout.

Validation: causal reproduction of the extra leading get, all 26 approval
runtime tests, app ktlint, and independent review.

* test(android): await complete gateway deadline admission

Read operation readiness through the existing lifecycle owner lock before
advancing virtual time. The operation field is published before its deadline
is registered, so an unlocked read could observe half-completed admission.
Preserve the deadline, cleanup, and replacement-admission assertions.

Validation: causal RED/GREEN, all 53 foreground-service tests, Android
ktlint, and independent review.

* fix(macos): propagate native worker task cancellation

Route Swift task cancellation through the existing worker owner and settle
cancelled calls without waiting for a suppressed child result. Bind queued
cancellation to its exact request reservation and consume that request's
buffered controls when admission is already cancelled.

Clarify that Screen Sharing can explicitly lock a Mac on viewer disconnect;
unattended hosting respects that operating-system boundary.

Signed isolated native proof passed six functions/eight cases, including
active and pre-dispatch cancellation, scoped buffered controls, worker
replacement, and process cleanup. Swift and documentation checks passed.

* test(browser): report tab creation errors before polling

* perf(ui): reuse native embed shape validation

* test(ui): await plugin mutation reconnect before assertions

* test(codex): control native relay retention clock

* fix(workers): cancel reserves and finalize confirmed cleanup

Let environments.destroy cancel an unused automatic reserve through the existing guarded preparation owner before waiting for provider settlement. Preserve claimed workers and admitted capture expiry behavior.

Carry confirmed allocation cleanup through WorkerProviderError.cleanupComplete and the existing teardown finalizer. Retire pending or bound node enrollment before terminal failure and preserve the original provider error. Uncertain allocation and cleanup retain their existing recovery ownership.

Validate with producer/consumer RED-GREEN cases, 53 combined service regressions, provider and ownership siblings, changed checks, and scoped P2 review. Keep separate checkpoint/image recovery obligations with the provider.

* fix(memory): reject views in FTS schema checks

Restore the existing unavailable-FTS fallback when a view occupies the derived index name. Preserve the colliding view and the existing savepoint boundary; table lookup must include views while excluding the independent trigger namespace. The unchanged temporal-ranking regression fails before this repair and passes afterward, with 64 focused cases, changed checks, and independent review passing.

* fix(cua): launch observed Mac apps by native identity

Use the observed bundle ID or name accepted by the pinned Mac driver instead of its unsupported launch_path field. Preserve discovered launch-path precedence on Linux and Windows and the rejection of model-supplied paths. Both Mac regressions failed before the guard; all 21 provider cases, selected changed checks and independent review pass. A fresh signed artifact and native launch proof remain required.

* fix(nodes): republish runner inventory after reapproval

* test(memory): preserve equal-count view collision coverage

* test(ui): wait for chat readiness before submitting controls

* fix(ci): recover stranded hosted tooling capacity

Rebalance one eligible file within its existing tooling family after bounded tail packing overflows. Preserve the 80-job cap, timing floors, complete inventories, process isolation, and ordinary plans.

* test(android): observe promotion before crossing discovery deadline

Use the existing retirement callback to observe reservation before exercising bounded cleanup. Preserve discovery and assertion deadlines and release the held callback during cleanup.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 15, 2026
Port only the Wear promotion-reservation testcase from the canonical change. Observe retirement before crossing the discovery deadline and release the held callback during cleanup. Production code is unchanged.

Source-Commit: cc0d3ca
Source-PR: openclaw#144226
Punchcard-Session: cobalt-harbor-valley-dg
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 1, 2026
Port only the Wear promotion-reservation testcase from the canonical change. Observe retirement before crossing the discovery deadline and release the held callback during cleanup. Production code is unchanged.

Source-Commit: cc0d3ca
Source-PR: openclaw#144226
Punchcard-Session: cobalt-harbor-valley-dg
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: android App: android app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation extensions: browser extensions: codex extensions: crabbox extensions: memory-core Extension: memory-core gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: cua-computer proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

1 participant