Repository navigation
fix(codex): Computer Use fails when Desktop bundles a newer app-server - #125883
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 19, 2026, 1:35 PM ET / 17:35 UTC. ClawSweeper reviewWhat this changesThis 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 provenancePossible 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 Review scores
Verification
How this fits togetherThe 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]
Decision needed
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
Findings
Agent review detailsSecurityNeeds 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 surfaceSource +28, Tests +78, Docs +7, Config +1, Other +3. Total +117 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e474d23e653c. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Independent real-world macOS Desktop proof for #125883I applied exact PR head The excerpts below are reduced from retained production logs. Private agent, route, Inspectable source identity, readiness probe, and native Computer Use traceExact PR source in the tested runtimeThe admission, live-readiness, and managed-client source files are the same Git objects Managed Desktop selection and newer-runtime admissionAt the test boundary, The Gateway recorded the exact result of the newer-runtime admission decision: The app-server log then recorded a successful initialize and continued immediately The normal production rollout independently recorded the selected runtime: Real
|
|
@clawsweeper re-review |
@clawsweeper re-review taking this into account pls |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Maintainer decision requested: external Codex app-server compatibility boundaryI rechecked the official
Across all three tags, 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 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?
I am holding code changes until that owner decision. Current head |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph change authorizedThis PR includes dependency graph changes. A repository admin or member of
A later push changes the PR head SHA and requires a fresh security approval. |
|
@openclaw/openclaw-secops Dependency Guard approval requested for current head This restores the Codex plugin's prior direct Repository-native dependency report against PR base
Direct source inspection covered If approved, please comment:
|
|
/allow-dependencies-change |
1 similar comment
|
/allow-dependencies-change |
|
Land-ready evidence for exact head d34c32a:
Prepared and ready to merge. |
|
Merged via squash.
|
openclaw#125883) * fix(codex): allow newer app-server runtimes * fix(codex): bound external app-server compatibility --------- Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: Josh Lehman <[email protected]>
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.0artifact.Why This Change Was Made
The existing initialize gate now applies a strict SemVer floor of
0.147.0to external runtimes while leaving the managed package pinned exactly to0.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 existingthread/startandlist_appscapability 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
9bbb33bd2e242aeb33a1bac9c53e1f36dc000877e8a5035ca6bf2604665aad6c54d2c346221bc3a60.147.0+desktopand0.148.0-alpha.9.139/139passed.2/2passed.0.148.0-alpha.15completed the exact OpenClaw initialize handshake in a disposable isolated profile.0.146.9, and0.147.0-alpha.2.git diff --check upstream/main...HEADpassed.128insertions and35deletions; no dependency change.rust-v0.147.0andrust-v0.148.0-alpha.9have identical V1 initialize response and initialize-processor definitions.Real macOS Desktop
0.148.0-alpha.9, TCC,thread/start, andlist_appsremain runtime proof gaps. This PR does not claim that SemVer acceptance proves0.xprotocol compatibility.