Repository navigation
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(codex): prevent Computer Use timeouts in isolated homes This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Maintainer coordination: #113393 is selected as the canonical repair for the isolated-home Computer Use readiness stall. It keeps service provisioning scoped to the selected Codex home and adds the generic typed harness-preflight boundary needed to stop per-model readiness repetition; its exact-head CI and behavior proof are green. Please do not land both implementations independently. I am leaving this PR open so its author and maintainers can decide whether any non-overlapping work remains after #113393 lands. |
|
Closed in light of PR 113393: #113393 which cites it. Thank you, @fuller-stack-dev! |
1 similar comment
|
Closed in light of PR 113393: #113393 which cites it. Thank you, @fuller-stack-dev! |
Related: #103250
What Problem This Solves
Fixes an issue where users with Codex Computer Use enabled could have every agent turn wait through two readiness timeouts and then fail when the current thin Computer Use plugin was installed in an isolated agent Codex home. The thin plugin launcher expects the signed service app at
$CODEX_HOME/computer-use/Codex Computer Use.app, but OpenClaw only installed the plugin files, leaving the service absent from isolated homes.The same failure could be reported as a live-test timeout with “startup is allowed” even though the named MCP server exposed zero tools and startup would still be blocked.
Why This Change Was Made
When Computer Use auto-install is authorized, OpenClaw now provisions the desktop-bundled signed service app before app-server startup. It pairs the source with the selected ChatGPT/Codex desktop command, stages and atomically replaces copies with cross-process race recovery, refreshes changed copies using a cached signed-content fingerprint, and leaves an existing valid copy alone when source identity is unavailable.
Readiness now treats a named MCP server with an empty tool map as missing exposure, reloads once during explicit install, and fails immediately instead of spending two
thread/startprobes on a server that cannot serve Computer Use tools. Genuine post-exposure live-test failures retain the existing non-strict compatibility behavior.AI-assisted: yes. The implementation and evidence were reviewed against the OpenClaw and upstream Codex runtime contracts, followed by an independent fresh diff review with all actionable findings addressed.
User Impact
Affected macOS users can keep Computer Use enabled in isolated agent homes after the desktop plugin packaging transition without all Codex turns being blocked by the missing service app. Setup also fails faster and reports the actual empty MCP exposure when provisioning cannot make tools available.
Existing matching service apps are not recopied. Computer Use disabled configurations and enabled configurations with
autoInstall: falsedo not authorize or perform this provisioning.Evidence
SkyComputerUseClientwas missing under the isolated$CODEX_HOME; disabling Computer Use immediately restored turns.1.0.1000502plugin is a thin launcher for the canonical per-home app. The installed ChatGPT desktop app contains the matching signed service source.pnpm check:changedpassed locally, including production/test extension typechecks, extension lint, formatting, boundary guards, and import-cycle checks.pnpm check:docspassed: formatting, markdown lint, MDX, glossary, 6,174 internal links, and docs map.installedon the first ensure andalready_installedin 7 ms on the second, and/usr/bin/codesign --verify --deep --strictpassed on the copied app.0dfa778dae6a94b2ff2c69176cbaf063a3bf18a1:mcpServerStatus/listcan expose a configured server with no tools (codex-rs/app-server/src/request_processors/mcp_processor.rs), while exact thread binding waits for a ready MCP client (codex-rs/codex-mcp/src/connection_manager/tool_catalog.rs).