Skip to content

fix(cua): restore Mac Command shortcuts and native worker packaging - #136018

Merged
steipete merged 4 commits into
mainfrom
codex/cua-macos-command-modifiers
Sep 2, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/cua-macos-command-modifiers

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Related: landed cloud CUA and WebVNC fixes in #135582.

What Problem This Solves

Mac CUA shortcuts silently lost Command: cmd+shift+left selected one character instead of the line although the action reported success. Building and testing the replacement native app also exposed worker packaging failures: pnpm rejected a prepared bundle under the isolated linker default, temporary Swift files entered the published package, Mac verification ignored the chosen scratch volume, and Windows GNU tar decoded directory separators as escapes.

Why This Change Was Made

The CUA plugin normalizes modifiers against the provider platform before native dispatch. macOS receives cmd; Linux and Windows retain meta. Desktop keys, window keys, standalone modifiers and supported window-click modifiers share this owner. Duplicate chord parsing and unreachable drag-modifier handling are removed; the public schema already rejects drag modifiers.

The packaging owner already materializes the private AI runtime as a real bundled directory. Its pnpm pack command now selects the matching hoisted mode without changing installation or workspace configuration. Shared pack arguments preserve the npm path. The Mac builder keeps private Swift staging outside published dist, and separates disposable package/cache/HOME/verification files from installed runtime staging. Scratch honors the caller's existing TMPDIR; installed payloads stay beside the destination so publication remains a same-volume move. Both private roots are cleaned, isolated homes exist before loading the installer, and the previous app remains untouched until verification succeeds.

One shared tar caller owns bundled-AI extraction and archive-mode normalization. It retains archive basenames and archive-parent working directories, and converts native directory separators to forward slashes before passing -C. This prevents GNU tar from interpreting Windows \n/\a path components as escape sequences. Flags, creation environment, package manager and all deadlines remain unchanged.

Combined production/tooling changes are net +2 lines; tests/support are net +657. The additional Mac allocation lifetime and cleanup are necessary to separate scratch placement from same-volume publication; the tar refactor itself is net zero. There are no OpenClaw configuration, dependency, wire-schema, protocol, store or migration changes. The automated persistence flag does not apply: modifier normalization changes ephemeral native arguments, not stored state.

User Impact

Documented Command shortcuts reach the Mac with their intended modifier, including window-targeted input. Malformed-input rejection, unsupported actions and background-delivery refusals keep their existing behavior. Native packages include the private AI runtime without temporary Swift files, respect the builder's scratch location and support both Windows tar implementations tested below. No input fallback, permission escalation, larger timeout, skipped verification gate or package-manager substitution is introduced.

Evidence

  • Live Mac RED: screenshot → coordinate click → cmd+shift+left → screenshot selected one trailing character without changing the text. The pinned CUA 0.22 native modifier parser accepts cmd/command; the relevant input modules are unchanged from 0.21. A fresh WebVNC baseline capture was saved and fully inspected before the new build.
  • Five intended Darwin failures in the 37-case native-boundary suite became green. The last mechanical refresh passed 283 tests across 23 files: 166 CUA, 106 core computer-tool/result and 11 public-contract tests. Those runtime files are unchanged by the later packaging repairs.
  • Both original packaging regressions independently failed before their repairs and passed with identical test bytes afterward. They execute real pack operations and inspect AI payload bytes, manifests, source restoration, temporary-file exclusion, same-volume staging, cleanup and preservation of the previous app. The old pnpm argument-only test was replaced. pnpm 12.1 source inspection and real dependency probes confirm the linker guard and prepared-directory contract.
  • Mac scratch regression: six intended failures and eight passes on the prior production code became 14/14 passes with identical tests. Both complete owner test files passed 202/202, covering child-created scratch/cache files, precreated isolated HOME, directory identity across publication, both architectures and signing variants, failure cleanup, and configured/unset post-sign TMPDIR.
  • Native Windows Node 24.20 reproduced both extraction failures with GNU tar 1.35 on existing backslash paths. Forward-slash paths passed extraction, repacking and independent byte checks with that same executable and with System32 bsdtar 3.8.4. Native paths also passed with bsdtar. The selected binary in the earlier failing CI log is unknown; the independent probe records both exact binaries and did not change PATH. The unchanged real pnpm regression and sibling package/runner tests passed 139 tests locally, with three existing Windows-only skips on macOS.
  • The new complete candidate passed the managed Codex P0 review without findings, changed script static gates, root-test typechecking, targeted formatting/lint and shell syntax checks. Reviewed source hashes remained unchanged through normal commit hooks.
  • Earlier candidate 1b43b57f passed its full canonical JavaScript build and Intel Swift compilation, then failed the existing 300-second tar-check deadline after extraction consumed 242.573 seconds on forced destination-volume scratch. Its CI run passed both macOS Swift jobs but failed the real Windows bundled-AI test. Both failures are preserved; neither is treated as successful artifact acceptance. The repaired candidate 71df626a passed its complete canonical JavaScript build in 8m33.1s, including declarations, UI, import/export checks and startup metadata. Its canonical signed Intel app build completed in 20m40s, followed by independent strict verification of the frozen app, CUA 0.22, embedded Node, MLX and required resources. All four native worker startup checks passed before and after signing. The unchanged tar checker completed in 13 seconds, including 1.9 seconds of extraction. The transfer ZIP also passed complete content/mode/link round-trip and strict signature verification. The matching portable package passed canonical integrity, exact build/worker-byte checks, source restoration and native-app exclusion. Both artifacts are accepted. The strictly signed Mac app and the portable Windows package were subsequently installed and their actual source/build/native-driver identities verified; the Windows installation and doctor checks passed.
  • Separate historical local diagnostic: the original Mac changed-check had three command timeouts and one cleanup failure in unchanged standalone elevation-artifact verification. The full original CI2 order/concurrency/assertions/deadlines passed those four cases but ended with 559 passes and a different cleanup failure; CI3 passed 355 tests. One retained-input diagnostic later passed unchanged and preserved the original fixture/ownership records. This remains an unresolved local harness diagnostic, not a green full-suite or claimed repair. Neither changed packaging owner is reachable from that standalone verify dispatch.
  • CI follow-up consumes the existing three-file test repair from #136036, commit 827791a4760, unchanged. Node can adopt a control file during its initial asynchronous stat without delivering a watch notification. The new persistent-file regression failed against the old fixture at its original 10-second deadline, then passed with direct state polling at the unchanged 50 ms cadence. All 20 focused cases plus the real shared-generation release case passed, along with the selected changed checks and independent Codex review. The final head 16fb0f49 differs from the accepted 71df626a native artifacts only in those three test/support files; all 36,577 other tracked inputs and accepted artifacts are unchanged. No new native-build identity is claimed.
  • CI history is preserved: both Windows jobs and Mac release compilation passed on 71df626a, while security-hook fetching failed before scanning and the receipt-race test failed. That run was superseded by the real test repair. Exact-head CI for 16fb0f49 is now successful: both Mac jobs and both Windows jobs passed, followed by the required openclaw/ci-gate at 12:15 UTC on September 2. The original security job failed during PR-history fetching before scanning. After the run became terminal, one normal job retry passed history fetching, leaked-credential scanning, private-key detection and dependency auditing on the workflow's GitHub-hosted Ubuntu runner. This proves the retry path, not a repair of the original Blacksmith Git transport failure.
  • Live Mac GREEN on the accepted 71df626a artifact with CUA 0.22: the real placed worker reported darwin/x64 and its assigned workspace, took a fresh screenshot, clicked using that frame, sent cmd+shift+left, and returned a fresh screenshot showing the complete second line selected. Independent WebVNC observation confirmed the selection; the first line was unchanged. A subsequent real typing turn preserved both baseline lines and visibly read back its exact marker. That typing probe did not satisfy its separate physical-line-ordinal expectation because a blank line remained; no newline repair is claimed. Both workers were reclaimed, their known temporary states were removed and workspace proof files reconciled.
  • Live Windows CUA 0.22 now passes native screenshot, coordinate click, Ctrl+A, typing and independent WebVNC readback. This ran on accepted follow-up artifact 777b4089; its CUA plugin and the three packaging owners are byte-identical to 16fb0f49. The placed worker reported win32/x64 and its assigned workspace. Native screenshots delivered 1024×768 JPEG images and fresh frame IDs; clicking Increment changed Count 0 to 1. The first model turn supplied an older marker to the type tool and falsely claimed the requested value in its final answer. That failed marker check is preserved: the actual typed text matched the tool argument. One explicitly corrective turn used a fresh screenshot, coordinate click, Ctrl+A and one type action; WebVNC independently confirmed the complete requested marker in both field and display while Count remained 1. Both actual worker processes and their reported temporary state directories were absent after normal reclaim, capacity returned to zero occupied slots, and the unique workspace JSON reconciled byte-for-byte against the actual write serialization. No shell GUI input, clipboard, accessibility write, fixture reset, or native VNC viewer was used.
  • A fresh Mac read-only run on the same follow-up worker bundle passed screenshot, window discovery and window accessibility/screenshot observation against the retained accepted 71df626a native app. Its actual worker and temporary state disappeared after normal reclaim while the native app/node stayed alive. The earlier Mac availability failure and two Windows provider failures remain preserved; this does not establish a network root cause. Shared launch-deadline, provider-error diagnostics and Desktop readiness repairs continue separately in #136297.
  • Latest review follow-through: personally inspected the pinned CUA 0.22 macOS keyboard and pointer parsers and the complete synthetic Mac/Windows WebVNC captures. Both native parsers accept cmd/command; their exact Git blobs match the inspected source. This completes the native-contract and visual-artifact Rank-up move. Accept the documented native compatibility evidence under the requested autonomous landing. A fresh independent Codex P0 review of the complete 15-file 16fb0f49 PR patch also passed without findings. The automated stored-data annotation is inapplicable: actions.ts normalizes transient native-input arguments and does not change serialization, persistent storage, schemas or migrations.

Named follow-up: CUA held-pointer modifier contract. Accepted held-button modifiers and movement semantics need separate ordered gesture/cleanup proof at the CUA boundary. This repair does not change that contract or emulate unsupported input.

Mac Command proof through WebVNC

Both captures show the same synthetic document and accepted CUA 0.22 app. The first is the baseline immediately before the fresh command; the second shows the complete line selected by that command. No native VNC viewer was used.

Before the fresh Command action:

Synthetic Mac desktop before the fresh Command action

After cmd+shift+left:

Synthetic Mac desktop with the complete line selected

Windows CUA proof through WebVNC

The first capture is the clean synthetic baseline. The second follows the two explicitly described turns above, including the model's corrected marker selection. It is not presented as an uninterrupted first-attempt success.

Synthetic Windows desktop before CUA input

Synthetic Windows desktop after verified CUA selection and typing

Normalize Command aliases to the native cmd spelling on macOS for desktop and window input, while keeping meta on Linux and Windows. Share the chord and pointer modifier owner and remove unreachable drag-modifier handling without widening the public action schema.

Restores documented Command shortcuts. Boundary RED: five Darwin failures; GREEN: 37 cases, 162 owner/contract tests, full changed checks, and managed P0 review. Native WebVNC selection reproduced the old one-character result; candidate native proof follows before landing.
@steipete steipete self-assigned this Sep 2, 2026
@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.

@steipete
steipete marked this pull request as ready for review September 2, 2026 05:58
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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: needs maintainer review before merge. Reviewed September 2, 2026, 8:37 AM ET / 12:37 UTC.

ClawSweeper review

What this changes

The PR maps CUA Command aliases to macOS-native input spelling, repairs native-worker package staging and Windows tar paths, and replaces racy test file watches with state polling.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking patch defect was found. This remains open because it is maintainer-authored and carries the protected maintainer label; final native-proof sufficiency requires maintainer judgment.

Priority: P1
Reviewed head: 16fb0f49e5e1dec5f915b8bd8a3d8c172f393a2b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent owner-boundary repair with focused regression coverage and recorded platform evidence; remaining uncertainty is limited to reviewer access to upstream and attachment artifacts.
Proof confidence 🌊 off-meta tidepool Not applicable: This is member-authored, so the external-contributor proof gate does not apply. The PR body records Mac WebVNC after-fix behavior and exact-head CI; its production CUA and packaging changes predate the final test-only commit, but the reviewer could not fetch the linked images in this environment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is member-authored, so the external-contributor proof gate does not apply. The PR body records Mac WebVNC after-fix behavior and exact-head CI; its production CUA and packaging changes predate the final test-only commit, but the reviewer could not fetch the linked images in this environment.
Evidence reviewed 7 items Single CUA normalization boundary: The introduced normalizer maps aliases resolving to meta into cmd only on Darwin, then both desktop and targeted window dispatch paths pass the provider platform into the shared parser.
Current main still has the reported mapping: Current main retains the pre-PR normalizer, which resolves Command aliases to meta without a Darwin-specific conversion; the central CUA repair is not already implemented on main.
Public action contract preserves drag refusal: The shared computer-action schema disallows extra properties and its drag variant has no modifiers field, so removing the now-unreachable CUA drag check does not widen the public request contract.
Findings None None.
Security None None.

How this fits together

The CUA plugin translates agent computer actions into native-driver calls on desktop and window targets. Packaging scripts build the worker runtime embedded in the Mac app and portable package artifacts.

flowchart LR
  A[Agent computer action] --> B[CUA provider]
  B --> C[Platform modifier normalization]
  C --> D[Native CUA driver]
  E[Build inputs] --> F[Packaging scripts]
  F --> G[Worker runtime bundle]
  G --> H[Mac app and portable package]
Loading

Decision needed

Question Recommendation
Is the recorded exact-head CI plus Mac artifact evidence sufficient to accept the platform-specific CUA and packaging changes despite this reviewer's inability to retrieve the upstream driver source and images? Accept the recorded native evidence: Treat the exact-head CI, unchanged production continuity, and documented Mac/WebVNC and Windows package evidence as sufficient for merge.

Why: The patch is coherent and the external-contributor proof gate does not apply to this member-authored PR, but the protected label requires explicit maintainer handling and the dependency/attachment check could not be completed locally.

Before merge

  • Resolve merge risk (P1) - The reviewer could not independently retrieve the pinned CUA-driver source or linked WebVNC captures because GitHub DNS failed; a maintainer should inspect those native-contract and visual artifacts before merge.
  • Complete next step (P2) - A maintainer must accept the native-proof sufficiency decision before merge because this PR is maintainer-authored and protected by the maintainer label.
Agent review details

Security

None.

PR surface

Source -3, Tests +657, Other +5. Total +659 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 3 51 54 -3
Tests 9 768 111 +657
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 64 59 +5
Total 15 883 224 +659

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +19/-23; tests/test support +765/-101 The bug repair is net-negative in production/tooling while extensive regression coverage exercises CUA dispatch, packaging, and receipt polling.

Stored data model

Persistent data-model change detected: serialized state: extensions/cua-computer/src/actions.ts, unknown-data-model-change: extensions/cua-computer/src/actions.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Accept the native compatibility evidence (recommended)
    Merge with the recorded exact-head CI and platform-specific proof, recognizing that existing Mac shortcut encoding and worker package assembly change together.
  2. Hold for artifact inspection
    Pause until a maintainer can inspect the pinned driver contract and linked Mac visual evidence that this review environment could not fetch.

Technical review

Best possible solution:

Retain the shared platform-aware CUA normalizer and canonical tar/staging ownership, then merge once a maintainer accepts the recorded native evidence.

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

Yes, source-reproducible: current main maps Command aliases to meta, while the introduced Darwin path emits cmd through both desktop and window dispatch. This reviewer did not rerun the native Mac scenario.

Is this the best way to solve the issue?

Yes. Resolving aliases once at the CUA normalization boundary is the narrowest maintainable fix because both desktop and targeted input share it, while packaging cleanup remains in its owning scripts.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: The PR repairs documented macOS CUA shortcuts that can report success while performing the wrong native action.
  • merge-risk: 🚨 compatibility: It changes CUA modifier encoding and native package assembly used by existing Mac and portable installations.
  • merge-risk: 🚨 availability: An error in worker staging or tar-path normalization could leave a packaged native worker unusable.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is member-authored, so the external-contributor proof gate does not apply. The PR body records Mac WebVNC after-fix behavior and exact-head CI; its production CUA and packaging changes predate the final test-only commit, but the reviewer could not fetch the linked images in this environment.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: 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.

  • Confirm the pinned CUA-driver cmd contract and inspect the linked before/after WebVNC captures before accepting the protected native-platform risk.

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 (6 earlier review cycles)
  • reviewed 2026-09-02T06:07:32.549Z sha c465b6c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T08:18:58.589Z sha 1b43b57 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T09:38:31.612Z sha 71df626 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T10:02:51.448Z sha 71df626 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T10:10:34.951Z sha 71df626 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T10:48:46.783Z sha 16fb0f4 :: needs maintainer review before merge. :: none

Select the hoisted pack contract for the already materialized bundled AI
runtime without changing the workspace install layout. Keep private Mac
Swift and worker staging outside the published dist tree.

Replace the mocked pnpm command assertion with real tarball coverage and
prove stage exclusion, source restoration, cleanup and previous-app safety.
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: L and removed size: M labels Sep 2, 2026
@steipete steipete changed the title fix(cua): preserve Command shortcuts on macOS fix(cua): restore Mac Command shortcuts and native worker packaging Sep 2, 2026
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The updated head 1b43b57fe3334e1175416901f4a97613e6edecc2 also repairs the two packaging-owner defects exposed while building the native Mac replacement. The PR body now covers the combined diff, real packaging regressions, full JavaScript build, and the unresolved local artifact-test cleanup diagnostic.

Signed-artifact acceptance, native Mac/Windows CUA 0.22 verification and refreshed CI remain explicit pre-merge work; no native GREEN is claimed yet. The computer wire schema and persistent-store contracts remain unchanged.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

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

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 2, 2026
Honor the caller's temp volume for disposable Mac worker package, cache,
HOME and verification files while keeping installed payloads beside the
destination for same-volume publication. Precreate isolated homes before
loading the installer and clean both private allocation roots on failure.
The post-sign verifier retains the caller's temp location as well.

Use one package-tar owner for bundled AI extraction and archive mode
normalization. Convert native directory separators to forward slashes so
GNU tar does not decode Windows backslashes; preserve archive basenames,
working directories, flags, environment and existing timeouts.

The Mac regression fails six intended assertions before the repair and
passes all fourteen unchanged afterward; complete owner files pass 202
tests. Existing real pnpm coverage and sibling runners pass 139 tests.
Native Windows GNU tar and bsdtar probes confirm the path contract.
Managed Codex P0 review of the complete candidate found no findings.
Signed-app, portable-package and native CUA acceptance follow before land.
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Sep 2, 2026
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The new head 71df626a23052551a22dc24ecde27d60589b5082 separates disposable Mac worker scratch from same-volume installed staging and centralizes tar directory arguments so Windows GNU tar does not decode backslash paths. The updated PR body records the failing reproductions, unchanged-test repairs, dependency contracts, source review and accepted signed Intel/portable artifacts. Exact-head CI and fresh Mac/Windows CUA 0.22 proof through WebVNC are still being completed; neither is claimed green yet.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

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

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Sep 2, 2026
Consume the existing receipt-race repair from #136036 without changing its three-file patch. Initial asynchronous stat can adopt a control file without emitting a watchFile notification; poll persistent state at the existing 50ms cadence instead.

Preserve all shutdown deadlines, signals, process ownership and cleanup assertions. The lost-notification regression fails before the repair; 20 focused cases and the real shared-generation release case pass afterward. Selected changed checks and independent Codex review passed. Application/runtime sources and accepted CUA artifacts are unchanged.

Ported-from: 827791a
@steipete
steipete merged commit 04bad80 into main Sep 2, 2026
395 of 397 checks passed
@steipete
steipete deleted the codex/cua-macos-command-modifiers branch September 2, 2026 13:51
steipete added a commit that referenced this pull request 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.
steipete added a commit that referenced this pull request 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.
steipete added a commit that referenced this pull request 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…penclaw#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: openclaw#136297.
steipete added a commit that referenced this pull request Sep 3, 2026
Cloud session Desktop availability could remain stale after approval, replace an explicitly selected source during placement changes, or lose a dispatched worker to its discovery deadline. Offline Continue on Gateway also needed to retire the exact old owner while retaining cleanup responsibility, and aborted model calls could be reported as ordinary transport failures.

Consolidate Desktop inventory and session updates, retain explicit source/control/popout intent through placement updates, and retire the discovery deadline after dispatch. Move teardown orchestration to its canonical owner, preserve the exact abandonment decision through retries, and keep ordinary reclaim dependent on physical cleanup acknowledgment. Reuse the canonical diagnostic terminal owner and remove the duplicate adapter.

Apply the maintainer-approved, exact-version noVNC 1.7.0 repair: consume ignored extended-clipboard payloads so the following framebuffer message is parsed correctly. Load Desktop-only English with the existing lazy viewer, consolidate package-bin resolution, and register the unchanged retention subprocess with the existing compiled test-fixture owner.

Proof on head 8211f9f: 57 Desktop unit and 39 real-browser tests; full runtime-change gate plus focused fixture checks; full package/install verification; one real Linux model turn completing five CUA select-all/type cycles with 13 computer results and 20 uninterrupted passive WebVNC observations. Normal reclaim synchronized the exact 300-byte file and completed provider cleanup with no pending reconciliation. Earlier native Windows/macOS, stale-authority and offline-continuation proof retains its original build identity in the PR. The AWS Mac and Dedicated Host remain intentionally retained.

Related: #136018; openclaw/crabbox#1724, openclaw/crabbox#1740, openclaw/crabbox#1743, openclaw/crabbox#1782. No configuration, SQLite schema, or public protocol change. See PR #136297 for dependency provenance, review dispositions, production/test LOC classification, and explicitly unresolved diagnostic follow-ups.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…w#136297)

Cloud session Desktop availability could remain stale after approval, replace an explicitly selected source during placement changes, or lose a dispatched worker to its discovery deadline. Offline Continue on Gateway also needed to retire the exact old owner while retaining cleanup responsibility, and aborted model calls could be reported as ordinary transport failures.

Consolidate Desktop inventory and session updates, retain explicit source/control/popout intent through placement updates, and retire the discovery deadline after dispatch. Move teardown orchestration to its canonical owner, preserve the exact abandonment decision through retries, and keep ordinary reclaim dependent on physical cleanup acknowledgment. Reuse the canonical diagnostic terminal owner and remove the duplicate adapter.

Apply the maintainer-approved, exact-version noVNC 1.7.0 repair: consume ignored extended-clipboard payloads so the following framebuffer message is parsed correctly. Load Desktop-only English with the existing lazy viewer, consolidate package-bin resolution, and register the unchanged retention subprocess with the existing compiled test-fixture owner.

Proof on head 8211f9f: 57 Desktop unit and 39 real-browser tests; full runtime-change gate plus focused fixture checks; full package/install verification; one real Linux model turn completing five CUA select-all/type cycles with 13 computer results and 20 uninterrupted passive WebVNC observations. Normal reclaim synchronized the exact 300-byte file and completed provider cleanup with no pending reconciliation. Earlier native Windows/macOS, stale-authority and offline-continuation proof retains its original build identity in the PR. The AWS Mac and Dedicated Host remain intentionally retained.

Related: openclaw#136018; openclaw/crabbox#1724, openclaw/crabbox#1740, openclaw/crabbox#1743, openclaw/crabbox#1782. No configuration, SQLite schema, or public protocol change. See PR openclaw#136297 for dependency provenance, review dispositions, production/test LOC classification, and explicitly unresolved diagnostic follow-ups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling 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. plugin: cua-computer rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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