Repository navigation
fix(codex): stop Computer Use readiness stalls across fallbacks - #113393
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 24, 2026, 4:09 PM ET / 20:09 UTC. ClawSweeper reviewWhat this changesThe PR copies the signed macOS Computer Use service into an isolated Codex home when auto-install is authorized, detects empty MCP tool exposure before live probes, and prevents model fallback from repeating a model-independent harness readiness failure. Merge readinessKeep this PR open for explicit maintainer review. The patch addresses a real Codex Computer Use startup failure and provides unusually strong implementation and runtime evidence, but it also adds a public Plugin SDK error contract that defines cross-plugin model-fallback behavior; that contract should receive an owner decision before merge. The PR is authored by a repository member and carries the protected Priority: P1 Review scores
Verification
How this fits togetherA Codex-mode agent turn enters OpenClaw’s model-fallback runner, which starts the Codex app server and performs Computer Use readiness checks before a model attempt begins. This PR changes that handoff so local, model-independent readiness failures terminate fallback once while macOS isolated homes can receive the required desktop-bundled service. flowchart LR
A[Agent turn request] --> B[Model fallback runner]
B --> C[Codex harness startup]
C --> D[Isolated Codex home]
D --> E[Computer Use service and MCP readiness]
E -->|ready| F[Model attempt]
E -->|model-independent failure| G[Typed preflight error]
G --> H[Stop repeated fallback probes]
Decision needed
Why: The patch’s fallback behavior is technically coherent, but exporting a new SDK error class commits the project to semantics that other plugins may depend on; choosing between overlapping live branches is also a maintainer ownership decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource +274, Tests +264, Docs +6, Generated 0, Other +1. Total +545 across 16 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one canonical isolated-home Computer Use implementation, retain the typed preflight path only if maintainers approve it as a generic Plugin SDK contract, and merge with focused regression coverage for both generic fallback and explicit Computer Use turns. Do we have a high-confidence way to reproduce the issue? Yes, from source and the PR’s real-run evidence: enable strict Codex Computer Use readiness in an isolated macOS Codex home lacking the desktop service, configure multiple fallback models, and observe that the same startup/readiness probes repeat per candidate. I could not independently execute the path because the read-only command sandbox rejected all repository commands. Is this the best way to solve the issue? Unclear until maintainers decide the Plugin SDK boundary. The typed preflight mechanism is a focused way to stop genuinely model-independent retries, but a public fallback-control contract and the overlap with #113232 need one canonical owner decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2900026b333d. 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
|
|
Maintainer decision recorded in the PR body: the narrowly scoped public |
|
Merged via squash.
|
…claw#113393) * fix(codex): bound computer use readiness preflight * chore(codex): keep service status internal
Related: #103250
Related: #113232
What Problem This Solves
Fixes an issue where users with strict Codex Computer Use readiness enabled could wait through the same two
thread/starttimeouts once per fallback model before any model work began when an isolated Codex home did not contain the desktop-bundled Computer Use service.Why This Change Was Made
The Codex plugin now provisions the signed desktop Computer Use service into the exact Codex home before app-server startup, then reports strict readiness failures as a typed harness preflight that model fallback must not repeat. Empty Computer Use tool exposure fails before a live probe, while genuine Computer Use requests still fail closed when strict readiness is required.
Provisioning is scoped to the selected Codex home, stages and validates a complete service bundle before replacement, restores the prior bundle on failure, and coordinates concurrent installs in-process. This change does not add a persistent cache, weaken strict readiness, or broaden process cleanup.
AI-assisted: yes. The implementation was independently reviewed with the repository
autoreviewworkflow, and all actionable findings are resolved.User Impact
An unhealthy optional Computer Use integration no longer multiplies the same startup delay across every fallback model. On macOS, isolated Codex homes can use the signed service shipped by the selected ChatGPT or Codex desktop app. Computer Use remains fail-closed when strict readiness is enabled.
Maintainer Decisions
AgentHarnessPreflightErroris approved as an additive Plugin SDK contract for model-independent harness startup failures that occur before provider/model work. Harnesses must not use it for provider, model, or authentication failures, which retain normal fallback behavior.Evidence
thread/startcalls in 2,351 ms; proposed head performed 2 calls in 1,206 ms. The production timeout is 60 seconds per call, so the head removes six redundant calls without reducing the readiness retry count./usr/bin/codesign --verify --deep --strictpassed.pnpm check:changed,pnpm build,pnpm docs:check-mdx, and the plugin SDK surface check.thread/start, so repeated model attempts repeat the same readiness stall rather than testing a model-specific condition.autoreviewcompleted with no findings.