Repository navigation
fix(codex): keep newer Desktop app-servers eligible - #126450
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 19, 2026, 6:08 PM ET / 22:08 UTC. ClawSweeper reviewWhat this changesThe PR removes the maximum accepted Codex app-server version so newer Desktop, custom, and remote servers can initialize instead of falling back solely because their SemVer is newer. Merge readinessKeep this maintainer PR open for a compatibility-policy decision: it changes all external Codex server admission, but the required direct upstream Codex inspection and a real newer-Desktop flow are unavailable in this review environment. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Codex plugin selects a managed or external app-server, validates its initialize handshake, then uses that process for authentication and later thread and Computer Use operations. This change broadens the initialize-stage admission rule while later runtime operations remain separate. flowchart LR
A[Desktop custom or remote server] --> B[Initialize handshake]
B --> C[SemVer admission]
C --> D[Auth and runtime handlers]
D --> E[Thread and Computer Use operations]
C --> F[Managed fallback when rejected]
Decision needed
Why: The code cannot infer whether a CLI version is an adequate compatibility signal for an explicitly experimental upstream protocol, and the broader external-runtime policy affects existing fallback behavior. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -12, Tests -24, Docs -3. Total -39 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Replace the release-number ceiling with an authoritative protocol or capability contract, or scope the relaxation to the selected Desktop path and prove the newer Desktop initialize, thread, and Computer Use flow. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main rejects a parseable version above 0.148.0-alpha.15 at the initialize gate; this read-only review did not execute the harness. Is this the best way to solve the issue? No—not yet: accepting every newer external release is broader than the reported Desktop case and lacks independently checked upstream protocol and real-flow evidence. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e00f86019827. LabelsLabel changes:
Label justifications:
EvidenceWhat 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
|
(cherry picked from commit 841f25e) Co-authored-by: Josh Lehman <[email protected]>
Related: #125882
Follow-up to #125883
AI-assisted: yes. I reviewed the implementation and its upstream Codex contract directly.
What Problem This Solves
Fixes an issue where users starting Codex Computer Use through Codex Desktop would again lose the Desktop runtime after a routine update beyond
0.148.0-alpha.15. OpenClaw treated that release-specific ceiling as an incompatibility and fell back to the managed0.147.0package before normal readiness and capability validation.The ceiling was already stale when it merged: Codex had released
0.148.0-alpha.23.Why This Change Was Made
The managed
@openai/codexartifact remains exactly pinned to0.147.0. External app-servers must still report valid SemVer at or above the stable0.147.0floor, but newer versions may initialize with the existing warning and proceed through normal startup, readiness, and required-operation validation.This is an availability tradeoff, not a forward-compatibility guarantee. Upstream Codex initialization exposes the CLI build version through
userAgent, but no server protocol/schema version or server-declared capability contract. OpenClaw also opts into Codex's explicitly unstable experimental API. A CLI-version ceiling therefore has no upstream compatibility semantics and guarantees recurring rejection as Desktop advances.The separate selected-distribution provisioning/fallback invariant remains owned by #126080. This PR does not change provisioning or fallback mechanics; it removes only upper-bound-triggered fallbacks.
User Impact
Codex Desktop app-server releases newer than
0.148.0-alpha.15, including0.148.0-alpha.23, remain selected long enough to run OpenClaw's normal readiness and Computer Use checks. Older, malformed, unversioned, and same-core prerelease versions remain rejected. Genuine runtime incompatibilities still surface through their normal startup or capability diagnostics.Evidence
main: the focused client suite rejected0.148.0-alpha.23,0.148.0, and1.0.0at the former maximum-version branch (3 failures; 40 tests passed).102/102client and managed-fallback tests passed. Coverage confirms0.148.0-alpha.23remains the selected Desktop client without package fallback and retains rejection for missing, malformed, below-floor, and same-core prerelease versions.pnpm check:changedpassed, including extension typecheck, test typecheck, lint, import-cycle, dependency, formatting, and architecture guards.pnpm buildpassed.pnpm docs:listpassed; all four Codex compatibility docs now describe the minimum-only admission policy.../codex/codex-rs/app-server-protocol/src/protocol/v1.rsand../codex/codex-rs/app-server/src/request_processors/initialize_processor.rsexpose no server protocol version or server capability set;../codex/codex-rs/login/src/auth/default_client.rsbuildsuserAgentfromCARGO_PKG_VERSION;../codex/codex-rs/app-server/README.mdexplicitly gives experimental APIs no backward-compatibility guarantee. The initialize files are unchanged fromrust-v0.147.0throughrust-v0.148.0-alpha.23while V2 surfaces continue evolving.0.148.0-alpha.15, initialize, readiness,thread/start, a normal turn, and native Computer Use operations. This follow-up adds no new live Desktop run.-12lines, tests-24, docs-3; no dependency or lockfile change.