-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
[Bug]: ACPX Codex worker fails when model/thinking overrides are configured #74305
Copy link
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangsclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsProcess/app exits unexpectedly or hangsclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Crash (process/app exits or hangs)
Beta release blocker
No
Summary
Codex ACP worker runs succeed without internal model/thinking overrides, but fail with AcpRuntimeError: Internal error when model and model_reasoning_effort overrides are passed to codex-acp.
Steps to reproduce
Expected behavior
The Codex ACP worker should run successfully with supported model/thinking overrides, or return a specific validation error if those overrides are unsupported.
Actual behavior
The ACP worker fails with AcpRuntimeError: Internal error; the ACP stream log only records lifecycle start/error events, and no child transcript file is created.
OpenClaw version
2026.4.26 (be8c246)
Operating system
Linux 6.17.0-1011-azure x64, Node 22.22.2
Install method
npm global: /home/azureuser/.npm-global/bin/openclaw
Model
Override under test: gpt-5.5 with model_reasoning_effort=medium
Provider / routing chain
OpenClaw agent -> ACPX plugin -> @zed-industries/codex-acp@^0.11.1 -> Codex CLI
Additional provider/model setup details
ACPX Codex command used shared Codex auth via CODEX_HOME=/home/azureuser/.codex.
ACPX config included permissionMode: "approve-all" and nonInteractivePermissions: "fail".
Direct Codex CLI sanity checks with -c model=gpt-5.5 -c model_reasoning_effort=medium succeeded on the same VM/auth setup.
Removing the model/thinking overrides from the ACPX Codex command allowed the ACP worker flow to work again.
Logs, screenshots, and evidence
Observed OpenClaw log line: [ws] ⇄ res ✗ agent errorCode=UNAVAILABLE errorMessage=AcpRuntimeError: Internal error runId=f1b71913-b95d-4dea-a691-97596b7af9f6 error=AcpRuntimeError: Internal error: code=ACP_TURN_FAILED ACP stream log contained only lifecycle start/error events: phase: start phase: error error: Internal error No child transcript file was created for the failed ACP session.Impact and severity
Affected: ACPX Codex worker runs where the operator wants to control the child Codex model/thinking level.
Severity: Medium-high, because ACPX works only when the child model/thinking overrides are omitted.
Frequency: Observed on the tested ACPX Codex spawn attempts with model/thinking overrides configured.
Consequence: Operators cannot reliably configure the internal Codex ACP model/thinking level for spawned ACP workers.
Additional information
The same ACP workflow works after removing -c model=gpt-5.5 -c model_reasoning_effort=medium from the ACPX Codex command.