Skip to content

fix(codex): Computer Use fails when Desktop bundles a newer app-server - #125883

Merged
jalehman merged 3 commits into
openclaw:mainfrom
TheAngryPit:fix/codex-app-server-min-version
Aug 19, 2026
Merged

jalehman merged 3 commits into
openclaw:mainfrom
TheAngryPit:fix/codex-app-server-min-version

Conversation

@TheAngryPit

Copy link
Copy Markdown
Contributor

Closes #125882

What Problem This Solves

Fixes an issue where users starting Codex Computer Use through Codex Desktop would be rejected before capability validation when Desktop bundled an app-server newer than OpenClaw's exact managed 0.147.0 artifact.

Why This Change Was Made

The existing initialize gate now applies a strict SemVer floor of 0.147.0 to external runtimes while leaving the managed package pinned exactly to 0.147.0. Missing, malformed, lower, and same-core prerelease versions remain rejected; newer versions are allowed to initialize with the existing sanitized warning.

Candidate discovery, Desktop-first selection, fallback, readiness, Computer Use operations, telemetry, redaction, and terminal-error handling are unchanged. Acceptance permits an attempt and is not compatibility or readiness proof.

User Impact

Users whose Codex Desktop bundles a newer app-server, including 0.148.0-alpha.9, can reach the existing thread/start and list_apps capability path instead of being rejected only because the version string is newer.

Ordinary Codex selection remains package-first, and the managed artifact remains exactly pinned to 0.147.0.

Evidence

  • Base: 9bbb33bd2e242aeb33a1bac9c53e1f36dc000877
  • Head: e8a5035ca6bf2604665aad6c54d2c346221bc3a6
  • Failed first: the exact-version gate rejected 0.147.0+desktop and 0.148.0-alpha.9.
  • Focused client, shared-client, Computer Use, and manifest coverage: 139/139 passed.
  • Existing ordinary package-first and Computer Use Desktop-first selection coverage: 2/2 passed.
  • Codex Desktop's embedded CLI 0.148.0-alpha.15 completed the exact OpenClaw initialize handshake in a disposable isolated profile.
  • Rejection coverage includes missing versions, malformed SemVer, 0.146.9, and 0.147.0-alpha.2.
  • git diff --check upstream/main...HEAD passed.
  • Exact delta: six files, 128 insertions and 35 deletions; no dependency change.
  • No telemetry, probe, retry, fallback, or new runtime abstraction was added.
  • Codex rust-v0.147.0 and rust-v0.148.0-alpha.9 have identical V1 initialize response and initialize-processor definitions.

Real macOS Desktop 0.148.0-alpha.9, TCC, thread/start, and list_apps remain runtime proof gaps. This PR does not claim that SemVer acceptance proves 0.x protocol compatibility.

@clawsweeper

clawsweeper Bot commented Aug 18, 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 extensions: codex size: S labels Aug 18, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 19, 2026, 1:35 PM ET / 17:35 UTC.

ClawSweeper review

What this changes

This PR permits external Codex app-servers from 0.147.0 through 0.148.0-alpha.15 while keeping OpenClaw’s managed app-server pinned to 0.147.0.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 10 items remain

Keep open for owner and dependency-security review. The branch replaces current main’s exact-version rejection with a bounded range and has focused coverage, but the required direct Codex and SemVer contract inspection was unavailable and the live Desktop trace predates the current head’s rewritten gate.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The bounded implementation and focused tests are strong, but current-head real behavior proof and dependency authorization are still needed.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The redacted macOS logs convincingly exercise the older e8a5035 implementation, but the current d34c32 head changes the admission logic and needs an equivalent current-head trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The redacted macOS logs convincingly exercise the older e8a5035 implementation, but the current d34c32 head changes the admission logic and needs an equivalent current-head trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 8 items Current-main failure path: Current main rejects every detected version other than the managed 0.147.0 value at the initialize gate, which directly explains the reported newer-Desktop rejection.
Bounded admission implementation: The PR parses the handshake version and rejects values outside the explicit minimum and maximum before client startup proceeds.
Caller and fallback behavior: Client initialization is performed before the shared client is exposed; managed fallback occurs only after an unsupported-version error, so an admitted Desktop runtime remains selected.
Findings 2 actionable findings [P2] Reprove the Desktop path from the current head
[P3] Describe the supported range consistently
Security Needs attention Authorize the new plugin runtime dependency: The manifest adds semver 7.8.5 and the lockfile importer changes, which the repository dependency guard blocks until security or an authorized admin approves this head.

How this fits together

The Codex plugin selects a managed, Desktop, remote, or explicitly configured app-server, then validates its initialize handshake before sharing the client with Codex sessions and Computer Use readiness checks. This change alters that admission decision, not the downstream capability checks.

flowchart LR
  A[Desktop or configured app-server] --> B[Runtime selection]
  B --> C[Initialize handshake]
  C --> D[Supported version range]
  D -->|accepted| E[Shared Codex client]
  D -->|rejected| F[Startup diagnostic]
  E --> G[Computer Use readiness]
  G --> H[Agent session and tools]
Loading

Decision needed

Question Recommendation
Should this PR’s current head be approved to add plugin-local semver ownership and support external Codex app-servers through 0.148.0-alpha.15 after direct upstream protocol verification? Complete contract and dependency review: Inspect the relevant Codex protocol versions and semver source, collect a current-head Desktop trace, then authorize the manifest dependency if those checks confirm the stated range.

Why: The repository dependency guard requires an authorized current-head approval, and the Codex protocol contract required by repository policy could not be inspected in this read-only environment.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The redacted macOS logs convincingly exercise the older e8a5035 implementation, but the current d34c32 head changes the admission logic and needs an equivalent current-head trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Reprove the Desktop path from the current head (P2) - The supplied macOS trace identifies e8a5035 as the tested implementation, but this head rewrites the admission branch with SemVer parsing and a ceiling. Add a redacted current-head initialize and Computer Use trace before merge; redact private endpoints and identifiers.
  • Describe the supported range consistently (P3) - This sentence still calls the contract a minimum version even though the changed behavior rejects versions above the documented maximum. Say “supported range” so operators do not infer that later versions are accepted.
  • Resolve security concern: Authorize the new plugin runtime dependency - The manifest adds semver 7.8.5 and the lockfile importer changes, which the repository dependency guard blocks until security or an authorized admin approves this head.
  • Resolve merge risk (P1) - The PR expands the external app-server compatibility contract; its ceiling is sensible but still requires direct upstream protocol confirmation before merge.
  • Resolve merge risk (P1) - The new plugin-local semver dependency changes the dependency graph importer and is blocked pending the repository’s security approval for this head.
  • Resolve merge risk (P1) - The public macOS trace exercised an earlier head, not the current parser-and-ceiling implementation.
  • Resolve merge risk (P1) - Production code grows by 29 net lines; the direct plugin-local dependency is the right ownership shape, but its contract and approval must justify the added admission policy.
  • Complete next step (P2) - The remaining blockers are owner confirmation of the compatibility boundary and dependency-security authorization, not a mechanical repair.

Findings

  • [P2] Reprove the Desktop path from the current head — extensions/codex/src/app-server/client.ts:1019-1024
  • [P3] Describe the supported range consistently — docs/plugins/sdk-agent-harness.md:320-323
  • [low] Authorize the new plugin runtime dependency — extensions/codex/package.json:12
Agent review details

Security

Needs attention: The direct semver dependency is an intentional plugin-local ownership change, but its current-head dependency-guard approval and source inspection remain outstanding.

PR surface

Source +28, Tests +78, Docs +7, Config +1, Other +3. Total +117 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 2 32 4 +28
Tests 3 108 30 +78
Docs 4 26 19 +7
Config 1 1 0 +1
Generated 0 0 0 0
Other 1 3 0 +3
Total 11 170 53 +117

Review metrics

Metric Value Why it matters
Production versus test delta production +33/-4, tests +108/-30, docs +26/-19, lockfile +3/-0 The bug fix adds a bounded version-policy implementation and a plugin manifest dependency; the positive production delta needs the contract and dependency approvals above.

Stored data model

Persistent data-model change detected: vector/embedding metadata: docs/plugins/codex-harness-reference.md. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125882
Summary: This PR is the candidate implementation for the reported Desktop version-admission failure; the stacked bundle-refresh PR addresses a separate stale-native-bundle failure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Verify and authorize the bounded contract (recommended)
    Require direct Codex and SemVer contract inspection, a current-head redacted Desktop trace, and security approval for the manifest dependency before merge.
  2. Accept the explicit compatibility risk
    A maintainer may approve the bounded external range and dependency graph based on the existing earlier-head macOS evidence.
  3. Pause the compatibility expansion
    Keep the PR open without merging until an owner can establish the intended external app-server policy.

Technical review

Best possible solution:

Retain one explicit, documented external version range only after direct Codex protocol inspection, a redacted current-head Desktop run, and approval of the plugin-local SemVer dependency.

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

Yes—current main’s initialize gate source directly rejects any version not exactly 0.147.0, and the focused harness supplies the newer Desktop user-agent shape; it was not executed in this read-only checkout.

Is this the best way to solve the issue?

Unclear—the bounded range is materially safer than the earlier unbounded floor, but direct Codex protocol evidence and current-head behavior proof are still required to call it the best solution.

Full review comments:

  • [P2] Reprove the Desktop path from the current head — extensions/codex/src/app-server/client.ts:1019-1024
    The supplied macOS trace identifies e8a5035 as the tested implementation, but this head rewrites the admission branch with SemVer parsing and a ceiling. Add a redacted current-head initialize and Computer Use trace before merge; redact private endpoints and identifiers.
    Confidence: 0.96
  • [P3] Describe the supported range consistently — docs/plugins/sdk-agent-harness.md:320-323
    This sentence still calls the contract a minimum version even though the changed behavior rejects versions above the documented maximum. Say “supported range” so operators do not infer that later versions are accepted.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: It adds a direct runtime dependency whose graph change is explicitly blocked pending security authorization.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The redacted macOS logs convincingly exercise the older e8a5035 implementation, but the current d34c32 head changes the admission logic and needs an equivalent current-head trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove status: ⏳ waiting on author: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P1: A selected newer Codex Desktop runtime is rejected before Computer Use can initialize, blocking that existing workflow.
  • merge-risk: 🚨 compatibility: The PR changes the documented acceptance boundary for explicit, remote, and Desktop-owned app-server versions.
  • merge-risk: 🚨 security-boundary: It adds a direct runtime dependency whose graph change is explicitly blocked pending security authorization.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The redacted macOS logs convincingly exercise the older e8a5035 implementation, but the current d34c32 head changes the admission logic and needs an equivalent current-head trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [low] Authorize the new plugin runtime dependency — extensions/codex/package.json:12
    The manifest adds semver 7.8.5 and the lockfile importer changes, which the repository dependency guard blocks until security or an authorized admin approves this head.
    Confidence: 0.99

What I checked:

Likely related people:

  • jalehman: Authored the current-head bounded compatibility change and requested the corresponding dependency approval. (role: recent area contributor; confidence: high; commits: d34c32a3a5d3; files: extensions/codex/src/app-server/client.ts, extensions/codex/src/app-server/version.ts, extensions/codex/package.json)

Rank-up moves

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

  • Post a redacted current-head macOS Desktop initialize, readiness, and Computer Use trace.
  • Obtain the required current-head dependency approval after direct SemVer and Codex protocol inspection.
  • Replace “minimum version” with “supported range” in the SDK harness documentation.

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 (3 earlier review cycles)
  • reviewed 2026-08-18T16:50:13.294Z sha e8a5035 :: needs real behavior proof before merge. :: [P1] Keep runtime admission tied to a verified protocol contract
  • reviewed 2026-08-18T18:28:49.878Z sha e8a5035 :: needs real behavior proof before merge. :: [P1] Gate newer runtimes on a verified protocol contract | [P2] Align the remaining Codex version documentation
  • reviewed 2026-08-19T10:23:21.668Z sha 06f68d6 :: found issues before merge. :: [P1] Bound admission to a verified protocol contract

@bdjben

bdjben commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Independent real-world macOS Desktop proof for #125883

I applied exact PR head e8a5035ca6bf2604665aad6c54d2c346221bc3a6 in a
production integration and exercised the intended managed Desktop path on macOS. The
newer ChatGPT-bundled Codex app-server was admitted, passed OpenClaw's real Computer
Use readiness probe, started a normal V2 thread/turn, and then performed and verified a
native TextEdit operation through the computer-use MCP server.

The excerpts below are reduced from retained production logs. Private agent, route,
session, host, and home-directory identifiers are omitted or replaced with agent1 and
<agent1-CODEX_HOME>. Commit IDs, Git object IDs, timestamps, versions, request IDs,
protocol details, tool names, durations, and visible TextEdit output are retained.

Inspectable source identity, readiness probe, and native Computer Use trace

Exact PR source in the tested runtime

PR #125883 head:
  e8a5035ca6bf2604665aad6c54d2c346221bc3a6

running emitted integration:
  fd501f91776fb0a4513b18a2fb60ced39fb3ff46
  build ID 2026.8.1-fd501f91776f-2026-08-19T00-16-36.234Z

$ git merge-base --is-ancestor \
    e8a5035ca6bf2604665aad6c54d2c346221bc3a6 \
    fd501f91776fb0a4513b18a2fb60ced39fb3ff46
exit=0 (PASS)

The admission, live-readiness, and managed-client source files are the same Git objects
at the PR head and the running emitted integration:

extensions/codex/src/app-server/client.ts
  e8a5035: ca33356a0144cbf5626f469bfc5d639b99c62afc
  fd501f9: ca33356a0144cbf5626f469bfc5d639b99c62afc

extensions/codex/src/app-server/computer-use.ts
  e8a5035: d3a258bf569aa30bf6e68dd5989a1a9b066d864f
  fd501f9: d3a258bf569aa30bf6e68dd5989a1a9b066d864f

extensions/codex/src/app-server/shared-client.ts
  e8a5035: d940651714f7545627a1c378ab0694c22174343d
  fd501f9: d940651714f7545627a1c378ab0694c22174343d

PASS: the tested admission and readiness implementation is byte-identical to
      exact PR head e8a5035.

Managed Desktop selection and newer-runtime admission

At the test boundary, plugins.entries.codex.config.appServer.command and
appServer.homeScope were both absent. Computer Use, auto-install, and auto-repair
were enabled, so OpenClaw used its managed Desktop-first path and selected:

<ChatGPT.app>/Contents/Resources/codex
codex-cli 0.148.0-alpha.15

The Gateway recorded the exact result of the newer-runtime admission decision:

2026-08-19T02:05:38.535Z
detectedVersion=0.148.0-alpha.15
validatedVersion=0.147.0
codex app-server is newer than OpenClaw's validated managed runtime;
continuing with capability validation

The app-server log then recorded a successful initialize and continued immediately
through account/capability/plugin requests:

02:05:38.532295Z  initialize                       request_id=1
02:05:38.536307Z  initialized notification         connection_id=0
02:05:38.536417Z  account/login/start             request_id=2
02:05:38.539774Z  modelProvider/capabilities/read request_id=3
02:05:39.120990Z  plugin/list                      request_id=4
02:05:39.958325Z  plugin/read                      request_id=5
02:05:39.966514Z  mcpServerStatus/list             request_id=6
02:05:40.710259Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false
02:05:41.644902Z  MCP catalog built
                    available_server_count=3
                    unavailable_server_count=0
                    tool_count=133

The normal production rollout independently recorded the selected runtime:

2026-08-19T02:05:43.684Z
originator=openclaw
cli_version=0.148.0-alpha.15

Real thread/start -> computer-use/list_apps readiness probe

At exact PR head, runCodexComputerUseLiveTest performs this sequence:

thread/start
  ephemeral=true
  sandbox=danger-full-access
  approvalPolicy=never

mcpServer/tool/call
  server=computer-use
  tool=list_apps
  arguments={}

finally:
  thread/unsubscribe
  thread/archive

The retained app-server log captured that exact one-attempt sequence:

02:05:41.671584Z  thread/start          request_id=7
02:05:42.210853Z  thread/started        request_id=7
02:05:42.211557Z  mcpServer/tool/call   request_id=8
02:05:42.282009Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false
02:05:42.389637Z  thread/unsubscribe    request_id=9
02:05:42.390048Z  thread/archive        request_id=10

There was no retry and no live-test error. This is the production
ephemeral thread/start -> computer-use/list_apps -> cleanup probe, not a synthetic
initialize fixture.

Normal V2 thread/turn after readiness

OpenClaw then started the actual user turn on the same app-server generation:

02:05:43.141759Z  thread/start    request_id=11
02:05:43.300917Z  thread/started  request_id=11
02:05:43.652049Z  turn/start      request_id=12

thread/start metadata:
  app_server.api_version=v2
  app_server.client_name=openclaw
  app_server.client_version=2026.8.1
  thread_start.dynamic_tool_count=47

02:05:43.768336Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false

Successful native Computer Use behavior

The turn then invoked the real bundled Computer Use MCP tools. The records below are
reduced directly from the retained rollout; image bytes and private call/session IDs
are omitted.

{"timestamp":"2026-08-19T02:05:57.493Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"get_app_state","arguments":{"app":"TextEdit"}},"duration_ms":1854.594,"result":"Ok","result_excerpt":"Computer Use state (CUA App Version: 1000761); TextEdit Untitled focused; focused element is a settable text entry area"}
{"timestamp":"2026-08-19T02:06:04.329Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"type_text","arguments":{"app":"TextEdit","text_lines":4}},"duration_ms":1593.938,"result":"Ok","result_excerpt":"TextEdit Untitled contains all four requested lines; document marked Edited"}
{"timestamp":"2026-08-19T02:06:04.436Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"get_app_state","arguments":{"app":"TextEdit"}},"duration_ms":87.217,"result":"Ok","result_excerpt":"accessibility state and screenshot contain all four requested lines"}
{"timestamp":"2026-08-19T02:06:13.316Z","type":"task_complete","duration_ms":29659,"time_to_first_token_ms":4241,"last_agent_message":"Fixed: Opened a new TextEdit document, wrote the four-sentence swimming poem, and verified all text is visible."}

Visible verification from the final native state read:

Computer Use state (CUA App Version: 1000761)
App=/System/Applications/TextEdit.app/ (bundleID com.apple.TextEdit)
Window: "Untitled", App: TextEdit.
text entry area (settable) ID: First Text View, Value:
The water wraps around me like a cool and sparkling song.
Each gentle stroke makes tired thoughts drift quietly along.
I float beneath the open sky and feel completely free.
Swimming turns an ordinary day into a joyful sea.

Negative assertions across the complete rollout:

OpenClaw node computer / computer.act / screen.snapshot: 0 calls
AppleScript / osascript:                              0 calls
shell UI automation:                                 0 calls
managed browser:                                     0 calls
Computer Use errors/timeouts/fallbacks:               0
native MCP results:                                  3 Ok / 0 Error
task status:                                          succeeded

The app-server and native client retained the per-agent home boundary:

Gateway
  -> <ChatGPT.app>/Contents/Resources/codex app-server --listen stdio://
       CODEX_HOME=<agent1-CODEX_HOME>
       -> <agent1-CODEX_HOME>/computer-use/Codex Computer Use.app/
          Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/
          SkyComputerUseClient mcp

native client build: 1000761
native client cwd:
  <agent1-CODEX_HOME>/plugins/cache/openai-bundled/computer-use/1.0.1000761

The same run's full signed native-bundle identity, cold refresh, strict signature,
inode transition, isolation-preservation, and cleanup trace is published here:
PR #126080 evidence comment
(SHA-256 dbd189736518040a34a1bbe169acdfeda6fa9846e33f26c5793324d60d7df1fb).

Result

This closes the previously missing real macOS Desktop behavior trace. With no custom
app-server command, OpenClaw selected ChatGPT's bundled 0.148.0-alpha.15 runtime,
admitted it under #125883, completed its real ephemeral thread/start +
computer-use/list_apps capability test, started a normal V2 production turn, and
successfully performed and visibly verified a native Computer Use action.

@bdjben

bdjben commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Independent real-world macOS Desktop proof for #125883

I applied exact PR head e8a5035ca6bf2604665aad6c54d2c346221bc3a6 in a production integration and exercised the intended managed Desktop path on macOS. The newer ChatGPT-bundled Codex app-server was admitted, passed OpenClaw's real Computer Use readiness probe, started a normal V2 thread/turn, and then performed and verified a native TextEdit operation through the computer-use MCP server.

The excerpts below are reduced from retained production logs. Private agent, route, session, host, and home-directory identifiers are omitted or replaced with agent1 and <agent1-CODEX_HOME>. Commit IDs, Git object IDs, timestamps, versions, request IDs, protocol details, tool names, durations, and visible TextEdit output are retained.

Inspectable source identity, readiness probe, and native Computer Use trace

Exact PR source in the tested runtime

PR #125883 head:
  e8a5035ca6bf2604665aad6c54d2c346221bc3a6

running emitted integration:
  fd501f91776fb0a4513b18a2fb60ced39fb3ff46
  build ID 2026.8.1-fd501f91776f-2026-08-19T00-16-36.234Z

$ git merge-base --is-ancestor \
    e8a5035ca6bf2604665aad6c54d2c346221bc3a6 \
    fd501f91776fb0a4513b18a2fb60ced39fb3ff46
exit=0 (PASS)

The admission, live-readiness, and managed-client source files are the same Git objects at the PR head and the running emitted integration:

extensions/codex/src/app-server/client.ts
  e8a5035: ca33356a0144cbf5626f469bfc5d639b99c62afc
  fd501f9: ca33356a0144cbf5626f469bfc5d639b99c62afc

extensions/codex/src/app-server/computer-use.ts
  e8a5035: d3a258bf569aa30bf6e68dd5989a1a9b066d864f
  fd501f9: d3a258bf569aa30bf6e68dd5989a1a9b066d864f

extensions/codex/src/app-server/shared-client.ts
  e8a5035: d940651714f7545627a1c378ab0694c22174343d
  fd501f9: d940651714f7545627a1c378ab0694c22174343d

PASS: the tested admission and readiness implementation is byte-identical to
      exact PR head e8a5035.

Managed Desktop selection and newer-runtime admission

At the test boundary, plugins.entries.codex.config.appServer.command and appServer.homeScope were both absent. Computer Use, auto-install, and auto-repair were enabled, so OpenClaw used its managed Desktop-first path and selected:

<ChatGPT.app>/Contents/Resources/codex
codex-cli 0.148.0-alpha.15

The Gateway recorded the exact result of the newer-runtime admission decision:

2026-08-19T02:05:38.535Z
detectedVersion=0.148.0-alpha.15
validatedVersion=0.147.0
codex app-server is newer than OpenClaw's validated managed runtime;
continuing with capability validation

The app-server log then recorded a successful initialize and continued immediately through account/capability/plugin requests:

02:05:38.532295Z  initialize                       request_id=1
02:05:38.536307Z  initialized notification         connection_id=0
02:05:38.536417Z  account/login/start             request_id=2
02:05:38.539774Z  modelProvider/capabilities/read request_id=3
02:05:39.120990Z  plugin/list                      request_id=4
02:05:39.958325Z  plugin/read                      request_id=5
02:05:39.966514Z  mcpServerStatus/list             request_id=6
02:05:40.710259Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false
02:05:41.644902Z  MCP catalog built
                    available_server_count=3
                    unavailable_server_count=0
                    tool_count=133

The normal production rollout independently recorded the selected runtime:

2026-08-19T02:05:43.684Z
originator=openclaw
cli_version=0.148.0-alpha.15

Real thread/start -> computer-use/list_apps readiness probe

At exact PR head, runCodexComputerUseLiveTest performs this sequence:

thread/start
  ephemeral=true
  sandbox=danger-full-access
  approvalPolicy=never

mcpServer/tool/call
  server=computer-use
  tool=list_apps
  arguments={}

finally:
  thread/unsubscribe
  thread/archive

The retained app-server log captured that exact one-attempt sequence:

02:05:41.671584Z  thread/start          request_id=7
02:05:42.210853Z  thread/started        request_id=7
02:05:42.211557Z  mcpServer/tool/call   request_id=8
02:05:42.282009Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false
02:05:42.389637Z  thread/unsubscribe    request_id=9
02:05:42.390048Z  thread/archive        request_id=10

There was no retry and no live-test error. This is the production ephemeral thread/start -> computer-use/list_apps -> cleanup probe, not a synthetic initialize fixture.

Normal V2 thread/turn after readiness

OpenClaw then started the actual user turn on the same app-server generation:

02:05:43.141759Z  thread/start    request_id=11
02:05:43.300917Z  thread/started  request_id=11
02:05:43.652049Z  turn/start      request_id=12

thread/start metadata:
  app_server.api_version=v2
  app_server.client_name=openclaw
  app_server.client_version=2026.8.1
  thread_start.dynamic_tool_count=47

02:05:43.768336Z  computer-use MCP initialized
                    protocol_version=2025-06-18
                    tools.list_changed=false

Successful native Computer Use behavior

The turn then invoked the real bundled Computer Use MCP tools. The records below are reduced directly from the retained rollout; image bytes and private call/session IDs are omitted.

{"timestamp":"2026-08-19T02:05:57.493Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"get_app_state","arguments":{"app":"TextEdit"}},"duration_ms":1854.594,"result":"Ok","result_excerpt":"Computer Use state (CUA App Version: 1000761); TextEdit Untitled focused; focused element is a settable text entry area"}
{"timestamp":"2026-08-19T02:06:04.329Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"type_text","arguments":{"app":"TextEdit","text_lines":4}},"duration_ms":1593.938,"result":"Ok","result_excerpt":"TextEdit Untitled contains all four requested lines; document marked Edited"}
{"timestamp":"2026-08-19T02:06:04.436Z","type":"mcp_tool_call_end","plugin_id":"computer-use@openai-bundled","invocation":{"server":"computer-use","tool":"get_app_state","arguments":{"app":"TextEdit"}},"duration_ms":87.217,"result":"Ok","result_excerpt":"accessibility state and screenshot contain all four requested lines"}
{"timestamp":"2026-08-19T02:06:13.316Z","type":"task_complete","duration_ms":29659,"time_to_first_token_ms":4241,"last_agent_message":"Fixed: Opened a new TextEdit document, wrote the four-sentence swimming poem, and verified all text is visible."}

Visible verification from the final native state read:

Computer Use state (CUA App Version: 1000761)
App=/System/Applications/TextEdit.app/ (bundleID com.apple.TextEdit)
Window: "Untitled", App: TextEdit.
text entry area (settable) ID: First Text View, Value:
The water wraps around me like a cool and sparkling song.
Each gentle stroke makes tired thoughts drift quietly along.
I float beneath the open sky and feel completely free.
Swimming turns an ordinary day into a joyful sea.

Negative assertions across the complete rollout:

OpenClaw node computer / computer.act / screen.snapshot: 0 calls
AppleScript / osascript:                              0 calls
shell UI automation:                                 0 calls
managed browser:                                     0 calls
Computer Use errors/timeouts/fallbacks:               0
native MCP results:                                  3 Ok / 0 Error
task status:                                          succeeded

The app-server and native client retained the per-agent home boundary:

Gateway
  -> <ChatGPT.app>/Contents/Resources/codex app-server --listen stdio://
       CODEX_HOME=<agent1-CODEX_HOME>
       -> <agent1-CODEX_HOME>/computer-use/Codex Computer Use.app/
          Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/
          SkyComputerUseClient mcp

native client build: 1000761
native client cwd:
  <agent1-CODEX_HOME>/plugins/cache/openai-bundled/computer-use/1.0.1000761

The same run's full signed native-bundle identity, cold refresh, strict signature, inode transition, isolation-preservation, and cleanup trace is published here: PR #126080 evidence comment (SHA-256 dbd189736518040a34a1bbe169acdfeda6fa9846e33f26c5793324d60d7df1fb).

Result

This closes the previously missing real macOS Desktop behavior trace. With no custom app-server command, OpenClaw selected ChatGPT's bundled 0.148.0-alpha.15 runtime, admitted it under #125883, completed its real ephemeral thread/start + computer-use/list_apps capability test, started a normal V2 production turn, and successfully performed and visibly verified a native Computer Use action.

@clawsweeper re-review taking this into account pls

@clawsweeper

clawsweeper Bot commented Aug 19, 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 19, 2026
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Maintainer decision requested: external Codex app-server compatibility boundary

I rechecked the official openai/codex source directly for the versions in this PR:

  • rust-v0.147.0 (be6e8eac029b183056b7e4402879f15d2c85f61b)
  • rust-v0.148.0-alpha.9 (9392c3fa5bcda342b5b96a1a04d67b2f781617c2)
  • rust-v0.148.0-alpha.15 (ffe1de5cec9c0cd02629eb246534e4622da0ff41)

Across all three tags, app-server-protocol/src/protocol/v1.rs has the identical blob 17013b528f92e67dcbef37731989a21dbd3d1108, including InitializeResponse. The thread/start and mcpServer/tool/call request surfaces also remain present across the inspected versions. The published macOS trace then proves the actual Desktop 0.148.0-alpha.15 path through initialize, thread/start, list_apps, a normal turn, and native Computer Use.

The limit of that evidence is equally clear: Codex documents generated schemas as version-specific, and its experimental API has no backwards-compatibility guarantee. This proves the current Desktop train, not every unknown future 0.x runtime.

The current PR intentionally treats a newer external runtime as permission to attempt the existing capability path, with a warning and normal downstream diagnostics; it does not claim compatibility from SemVer alone. Adding an arbitrary upper bound would restore the same Desktop-update failure mode at the next version and would not represent an upstream protocol contract.

Could a maintainer confirm the intended policy boundary?

  1. Accept any well-formed external version >= 0.147.0 to attempt the existing runtime/capability path, retaining the managed artifact at exactly 0.147.0; or
  2. Require an explicit bounded range, in which case please identify the owner-approved range or protocol signal OpenClaw should enforce.

I am holding code changes until that owner decision. Current head 06f68d6cf6f9a0dc48245ebf97c33f1ef6aed369 is mergeable, CI is terminal green, and the six-file behavior remains unchanged by its mechanical main merge.

@jalehman jalehman assigned steipete and jalehman and unassigned steipete Aug 19, 2026
@jalehman
jalehman requested a review from a team as a code owner August 19, 2026 17:28
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

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

Changed files:

  • extensions/codex/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

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

@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph change authorized

This PR includes dependency graph changes. A repository admin or member of @openclaw/openclaw-secops authorized this exact head SHA with /allow-dependencies-change.

  • Approved SHA: d34c32a3a5d3f97e880379087dbb9162076d9e5b
  • Approved by: @joshavant

A later push changes the PR head SHA and requires a fresh security approval.

@jalehman

Copy link
Copy Markdown
Contributor

@openclaw/openclaw-secops Dependency Guard approval requested for current head d34c32a3a5d3f97e880379087dbb9162076d9e5b.

This restores the Codex plugin's prior direct [email protected] ownership so the compatibility gate uses the maintained SemVer implementation instead of the PR's bespoke parser. The root lockfile already resolves the same exact version.

Repository-native dependency report against PR base 9f8d53d6fb145851d8a43d79e19904f78c1163a3:

  • resolved packages added: 0
  • resolved packages removed: 0
  • resolved package versions changed: 0
  • dependency files changed: extensions/codex/package.json, pnpm-lock.yaml importer only

Direct source inspection covered [email protected] strict parse, core/prerelease comparison, and build-metadata precedence. pnpm check:changed, focused Codex tests, full build, and branch-wide autoreview are green locally.

If approved, please comment:

/allow-dependencies-change restored plugin-local semver declaration; no resolved package delta

@clawsweeper clawsweeper Bot added 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. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 19, 2026
@jalehman

Copy link
Copy Markdown
Contributor

/allow-dependencies-change

1 similar comment
@joshavant

Copy link
Copy Markdown
Collaborator

/allow-dependencies-change

@jalehman

Copy link
Copy Markdown
Contributor

Land-ready evidence for exact head d34c32a:

  • Dependency Guard: SUCCESS
  • Exact-head hosted CI: terminal green
  • Review artifact: READY FOR /prepare-pr, 0 findings
  • Repo-native prepare-run: passed using hosted exact-head gates
  • Local build and check: passed
  • Local full-test noise was isolated: the hooks admission test passed on focused rerun; update-method failures reproduce on main under this host external-supervision environment

Prepared and ready to merge.

@jalehman
jalehman merged commit e00f860 into openclaw:main Aug 19, 2026
250 of 252 checks passed
@jalehman

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: codex 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex Desktop app-server is rejected before Computer Use starts

6 participants