Skip to content

fix(macos): restore Codex sidebar and native command ownership - #118914

Merged
steipete merged 1 commit into
mainfrom
fix/macos-native-codex-command-ownership
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/macos-native-codex-command-ownership

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where macOS users opening the Codex sidebar would see a paired-node catalog failure when a bundled plugin advertised the same command as the native Mac app. The same ownership collision also made native capability behavior inconsistent when plugin commands overlapped.

Why This Change Was Made

The macOS coordinator already publishes native commands before worker commands, but the runtime dispatched to the generic worker first. Route every explicitly owned native command through its existing guarded handler, and delegate only remaining supported commands to the shared worker. This preserves the plugin's intentionally strict Codex version contract while allowing the native app to use the currently installed desktop Codex.

User Impact

Codex and Claude session sidebars use their native Mac handlers reliably, native computer and canvas settings remain consistently enforced, and worker-only shell, MCP, and Codex-terminal capabilities continue to work.

Evidence

  • Reproduced against a real signed macOS app: the Codex sidebar showed NODE_INVOKE_FAILED, and the node returned Codex app-server catalog is unavailable.
  • Confirmed the bundled TypeScript worker intentionally requires Codex 0.146.0 while the installed official desktop exposes 0.147.0-alpha.1.1; the native Swift client supports the desktop protocol without weakening the worker's compatibility boundary.
  • Verified upstream stdio and interactive thread-list contracts directly in ../codex/codex-rs/app-server/README.md, ../codex/codex-rs/app-server-protocol/src/protocol/v2/thread.rs, and ../codex/codex-rs/app-server/src/request_processors/thread_processor.rs.
  • Focused Swift proof: swift test --package-path apps/macos --disable-automatic-resolution --filter 'MacNode(HostWorker|Runtime)Tests' passed all 44 tests in both owner suites, including four native Codex/Claude command collisions, five disabled-native-consent collisions, both native and plugin canvas namespace gates, and three worker-exclusive commands.
  • Production change is line-neutral: three moved lines, with no additional dispatch path, compatibility fallback, or configuration surface.
  • A signed-app before/after node-catalog invocation and exact-head hosted CI will be verified before landing; screenshots are omitted because the session catalog contains private user data.

@steipete
steipete marked this pull request as ready for review August 3, 2026 19:40
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: S maintainer Maintainer-authored PR labels Aug 3, 2026
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready validation for the exact PR head e73d7a6803107d7a3f9d0b6bbdbe0dbfc973766a:

  • /usr/bin/swift test --package-path apps/macos --disable-automatic-resolution --filter 'MacNode(HostWorker|Runtime)Tests': 44 tests passed across both owner suites.
  • Parameterized regressions prove four native Codex/Claude catalog collisions, five disabled native capability cases, two Canvas namespace cases, and three worker-exclusive commands.
  • Production Swift formatting, both changed-file syntax checks, git diff --check, and the independent structured review all passed; the review reported zero accepted/actionable findings.
  • Live deployment proof passed four real model requests, a real Slack DM/response, local semantic memory, both channel probes, 64 concurrent service requests, and exactly one native Mac window.
  • The upstream Codex stdio and interactive thread-list contracts were inspected directly in codex-rs/app-server/README.md, codex-rs/app-server-protocol/src/protocol/v2/thread.rs, and codex-rs/app-server/src/request_processors/thread_processor.rs.
  • Exact-head hosted CI: https://github.com/openclaw/openclaw/actions/runs/30846790533

The fix preserves the existing strict TypeScript Codex version pin and native consent boundaries while moving three production lines, with zero production-line growth.

@steipete
steipete merged commit 7ae6a95 into main Aug 3, 2026
92 of 95 checks passed
@steipete
steipete deleted the fix/macos-native-codex-command-ownership branch August 3, 2026 19:50
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…outing-20260803

* origin/main: (34 commits)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  fix(ci): keep Matrix chunk tests aligned with inventory (#118917)
  fix(tts): preserve hidden speech answers when synthesis fails (#118690)
  test(gateway): add HTTP API QA coverage (#118809)
  test(qa): cover Control UI sessions and cron (#118838)
  fix(macos): preserve native command ownership and consent (#118914)
  test(qa): cover OpenClaw exec process lifecycle (#118819)
  test(ui): cover diagnostic operator flows (#118837)
  fix(search): propagate cancellation through provider-owned requests (#118895)
  test(gateway): cover loopback and LAN access (#118824)
  refactor(channels): own the lifecycle status contract in SDK patch factories (#118795)
  test(ui): add guarded config QA coverage (#118814)
  fix(feishu): fence external collaboration tool results (#118877)
  test(qa): cover Plugin SDK import topology (#118878)
  test(qa): register external app SDK proof (#118829)
  fix(gateway): expire temporal rows in cached session lists (#118875)
  test(matrix): isolate runtime state (#118892)
  ...
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…te-dry-run-no-state-mutation

* commit '682f60ce56b37c5cd3205fdcbbf25b21d48708f2': (28 commits)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  fix(ci): keep Matrix chunk tests aligned with inventory (#118917)
  fix(tts): preserve hidden speech answers when synthesis fails (#118690)
  test(gateway): add HTTP API QA coverage (#118809)
  test(qa): cover Control UI sessions and cron (#118838)
  fix(macos): preserve native command ownership and consent (#118914)
  test(qa): cover OpenClaw exec process lifecycle (#118819)
  test(ui): cover diagnostic operator flows (#118837)
  fix(search): propagate cancellation through provider-owned requests (#118895)
  test(gateway): cover loopback and LAN access (#118824)
  refactor(channels): own the lifecycle status contract in SDK patch factories (#118795)
  test(ui): add guarded config QA coverage (#118814)
  fix(feishu): fence external collaboration tool results (#118877)
  test(qa): cover Plugin SDK import topology (#118878)
  test(qa): register external app SDK proof (#118829)
  fix(gateway): expire temporal rows in cached session lists (#118875)
  test(matrix): isolate runtime state (#118892)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant