Repository navigation
Description
Summary
On OpenClaw 2026.6.1, openclaw doctor --fix migrates a working Codex-backed setup from codex/gpt-5.5 to openai/gpt-5.5. After the migration, the config validates and the gateway restarts, but a real agent turn fails with:
GatewayClientRequestError: FailoverError: codex app-server startup timed out <- Error: codex app-server startup timed out
Rolling back the config to the pre-doctor codex/gpt-5.5 setup restores the working state.
Environment
- OpenClaw:
2026.6.1 - Install kind: global npm package
- macOS
- Node:
22.22.3 - Gateway: launchd local gateway on
127.0.0.1:18789 - Codex plugin: enabled, loaded, trusted official install, version
2026.6.1
What was working before doctor
The default model was:
{
"primary": "codex/gpt-5.5",
"fallbacks": []
}Health checks passed:
- Gateway running
- Config valid
- Codex plugin loaded with no plugin drift
- Telegram channel accounts connected
- Skills showed
Missing requirements: 0
Reproduction steps
- Start from a working
codex/gpt-5.5setup. - Confirm config validates:
openclaw config validate --json- Run doctor:
openclaw doctor --fix --non-interactive- Doctor migrates agent/default model refs to
openai/gpt-5.5. - Restart gateway:
openclaw gateway restart- Config still validates:
openclaw config validate --json- Run a real agent smoke test:
openclaw agent --agent main --session-key agent:main:doctor-model-smoke-test --message "Smoke test after doctor model migration. Reply with exactly: MODEL_SMOKE_OK" --json --timeout 180Actual result
The agent turn fails:
GatewayClientRequestError: FailoverError: codex app-server startup timed out <- Error: codex app-server startup timed out
The failure happens after the doctor migration to openai/gpt-5.5.
Expected result
If openai/gpt-5.5 is now the canonical route for Codex-backed OpenAI agent turns, the migrated setup should run the same smoke test successfully, or doctor should not recommend/apply the migration on hosts where the Codex app-server route is not actually healthy.
Recovery
Restoring the pre-doctor config brings the setup back to:
{
"primary": "codex/gpt-5.5",
"fallbacks": []
}After rollback and gateway restart:
- Config validates
- Gateway is healthy
- Telegram reconnects
- Plugins load with no errors
- Skills remain clean with
Missing requirements: 0
Related issues / context
This appears related in shape to prior doctor/model-route reports:
openclaw doctor --fixon 2026.5.7 still rewritesopenai-codex/*→openai/* + agentRuntime.id="codex"on Codex-OAuth-only hosts (post-#78407 closure) #79461- [Bug]: doctor --fix rewrites Codex runtime model refs to openai/* and breaks Codex auth profile selection #78499
- [Bug]: openclaw doctor --fix rewrites openai-codex/* model refs to openai/* on 2026.5.4 → 2026.5.5 update, locking out ChatGPT-OAuth users #78407
- Possibly related to Codex app-server/provider startup behavior: [Bug]: Native
codex/*provider catalog not registered during gateway startup —Unknown model: codex/gpt-5.4on every restart #64938
The current docs suggest openai/gpt-5.5 plus Codex runtime is the intended modern route, so this report is specifically about the migration still producing an unusable runtime state on this host.
Notes
I intentionally omitted local usernames, Telegram IDs, bot names, auth profile names, and secrets. The issue is reproducible from the model-route migration and smoke-test behavior above.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 6, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 1:40 PM ET / 17:40 UTC.
Summary
Keep open: current main and the latest release still contain the reported doctor migration shape and the migrated OpenAI route still selects the Codex app-server path, while the directly relevant migration-plan and startup-timeout fixes are open candidate PRs rather than merged implementation.
Reproducibility: Partially: the doctor migration and migrated OpenAI-to-Codex runtime path are source-reproducible on current main and the latest release. The exact macOS real Codex OAuth startup timeout was not live-reproduced in this read-only pass.
Root-cause cluster
Relationship:
canonicalCanonical: #90881
Summary: This issue is the canonical combined report for the 2026.6.1 doctor
codex/gpt-5.5migration followed by Codex app-server startup timeout; related work splits between migration policy and startup timeout candidates.Members:
fixed_by_candidate: fix(doctor): gate legacy Codex canonicalization on a migration plan #93180 - This open PR implements the shared doctor migration-plan direction that would avoid unsafe legacy Codex canonicalization.partial_overlap: fix(codex): bound shared app-server startup waits #89442 - This open PR targets Codex initialize/startup timeout attribution but does not change doctor migration policy.same_root_cause: Codex context override can fall back to 272k after 2026.6.1 OpenAI route unification #90448 - This open issue is the broader legacy Codex migration-plan report for provider/model/auth/session state, but it does not cover the exactcodex/gpt-5.5startup-timeout smoke failure.partial_overlap: [Bug]: Codex bundled harness initialize still hangs in 2026.5.18 isolated cron — surfaces via #64744 timeout-wrapping as 'isolated agent setup timed out before runner start' #84567 - This issue covers Codex app-server initialize hangs in isolated cron, overlapping the timeout side but not the doctor migration side.same_root_cause: [Bug]: doctor --fix rewrites Codex runtime model refs to openai/* and breaks Codex auth profile selection #78499 - This closed report describes doctor rewriting Codex runtime model refs toopenai/*and breaking auth selection, the same migration family.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Next step
No new automated fix lane should fork this because the issue already has maintainer/product-review signals and open candidate PRs for the migration and startup sides.
Review details
Best possible solution:
Keep this issue open until maintainers either land the shared doctor migration plan and any needed Codex startup-timeout fix, or explicitly choose a different migration policy; close only after merged or shipped proof covers the reported smoke path.
Do we have a high-confidence way to reproduce the issue?
Partially: the doctor migration and migrated OpenAI-to-Codex runtime path are source-reproducible on current main and the latest release. The exact macOS real Codex OAuth startup timeout was not live-reproduced in this read-only pass.
Is this the best way to solve the issue?
No current fix is merged. The best path appears to be the shared doctor migration-plan PR plus a maintainer decision on whether the adjacent startup-timeout PR is also needed for this issue's reported smoke failure.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against eea777c9fc9c.
Label changes
Label justifications:
P1: The report describesdoctor --fixturning a previously working Codex-backed setup into failed real agent turns.impact:auth-provider: The affected surface is OpenAI/Codex provider and model route migration plus Codex auth-runtime selection.impact:crash-loop: The reported post-migration failure is a Codex app-server startup timeout that prevents the smoke turn from completing.Evidence reviewed
What I checked:
AGENTS.md:1, eea777c9fc9c)VISION.md, eea777c9fc9c)codex/*model refs to canonical provideropenaiwith runtimecodex, matching the reported migration direction. (src/commands/doctor/shared/legacy-runtime-model-providers.ts:18, eea777c9fc9c)migrateLegacyRuntimeModelRefand writes the migrated ref back. (src/commands/doctor/shared/legacy-config-core-normalizers.ts:273, eea777c9fc9c)codex/gpt-5.5and a Codex fallback to becomeopenai/gpt-5.5andopenai/gpt-5.4-mini, so main still intentionally carries the reported rewrite shape. (src/commands/doctor-legacy-config.migrations.test.ts:630, eea777c9fc9c)codex, so the migratedopenai/gpt-5.5route remains on the Codex app-server harness path. (src/agents/harness/policy.ts:40, eea777c9fc9c)Likely related people:
src/commands/doctor/shared/legacy-runtime-model-providers.ts,src/commands/doctor/shared/legacy-config-core-normalizers.ts,src/agents/harness/policy.ts)extensions/codex/src/app-server/attempt-startup.ts,extensions/codex/src/app-server/shared-client.ts)src/commands/doctor/shared/legacy-config-migrations.runtime.models.ts,src/commands/doctor/shared/legacy-config-migrate.test.ts)src/commands/doctor/shared/codex-route-warnings.ts,src/commands/doctor/shared/legacy-config-migrations.runtime.models.ts,src/commands/doctor-auth-flat-profiles.ts)extensions/codex/src/app-server/attempt-startup.ts,extensions/codex/src/app-server/shared-client.ts,src/cron/isolated-agent.codex-app-server.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.