fix(codex): stop Computer Use readiness stalls across fallbacks (#113393)

* fix(codex): bound computer use readiness preflight

* chore(codex): keep service status internal
This commit is contained in:
Jason (Json)
2026-07-24 14:27:53 -06:00
committed by GitHub
parent 663c4fba10
commit ee606def49
16 changed files with 576 additions and 31 deletions

View File

@@ -107,13 +107,19 @@ Computer Use in and lets OpenClaw install or re-enable it before the turn:
With this config, OpenClaw checks Codex app-server before each Codex-mode
turn. If Computer Use is missing but Codex app-server has already discovered
an installable marketplace, OpenClaw asks Codex app-server to install or
re-enable the plugin and reload MCP servers. On macOS, when no matching
re-enable the plugin and reload MCP servers. Before starting an isolated
Codex app-server on macOS, auto-install also copies the official signed
Computer Use service app from the selected desktop app bundle into that
Codex home's `computer-use` directory when the native client is missing.
On macOS, when no matching
marketplace is registered and a standard desktop app bundle exists, OpenClaw
also tries to register the bundled Codex marketplace from
`/Applications/ChatGPT.app/Contents/Resources/plugins/openai-bundled`, with
`/Applications/Codex.app/Contents/Resources/plugins/openai-bundled` retained
as a fallback for legacy standalone installs. If setup still cannot make the
MCP server available, the turn fails before the thread starts.
Strict readiness failures are harness preflight failures, so model fallback
does not repeat the same local readiness sequence for every model candidate.
After changing Computer Use config, use `/new` or `/reset` in the affected
chat before testing if an existing Codex thread has already started.
@@ -255,7 +261,7 @@ remote install is unsupported, run install with a local source or path:
| Field | Default | Meaning |
| ------------------------------- | -------------- | ------------------------------------------------------------------------------ |
| `enabled` | inferred | Require Computer Use. Defaults to true when another Computer Use field is set. |
| `autoInstall` | false | Install or re-enable from already discovered marketplaces at turn start. |
| `autoInstall` | false | Provision the native client and install or re-enable the plugin at turn start. |
| `marketplaceDiscoveryTimeoutMs` | 60000 | How long install waits for Codex app-server marketplace discovery. |
| `liveTestTimeoutMs` | 60000 | Timeout for the temporary readiness thread and its cleanup requests. |
| `toolCallTimeoutMs` | 60000 | Timeout for the Computer Use `list_apps` readiness tool call. |