Skip to content

doctor --fix migrates codex/gpt-5.5 to openai/gpt-5.5, then Codex app-server startup times out on 2026.6.1 #90881

Closed as not planned

Description

@abdulla2010

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

  1. Start from a working codex/gpt-5.5 setup.
  2. Confirm config validates:
openclaw config validate --json
  1. Run doctor:
openclaw doctor --fix --non-interactive
  1. Doctor migrates agent/default model refs to openai/gpt-5.5.
  2. Restart gateway:
openclaw gateway restart
  1. Config still validates:
openclaw config validate --json
  1. 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 180

Actual 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:

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.

Activity

  1. clawsweeper commented on Jun 6, 2026

    @clawsweeper
    Contributor

    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: canonical
    Canonical: #90881
    Summary: This issue is the canonical combined report for the 2026.6.1 doctor codex/gpt-5.5 migration followed by Codex app-server startup timeout; related work splits between migration policy and startup timeout candidates.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    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:

    • The exact macOS launchd plus real Codex OAuth startup-timeout failure was not live-reproduced in this read-only review.
    • The remaining fix may require both the doctor migration policy repair and the Codex startup-timeout boundary repair; neither candidate PR has merged.
    • The migration-plan PR intentionally changes shipped doctor behavior for legacy Codex state, so maintainers still need to accept the retained-route policy and proof level.

    Codex review notes: model internal, reasoning high; reviewed against eea777c9fc9c.

    Label changes

    Label justifications:

    • P1: The report describes doctor --fix turning 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:

    Likely related people:

    • vincentkoc: Current blame on the doctor migration alias, normalizer, runtime policy, repair sequencing, and Codex startup paths points to the recent conversation-binding refactor, and history also links this handle to canonical Codex OAuth routing. (role: recent area contributor; confidence: high; commits: 9f888d95e082, 859eb0666282; files: src/commands/doctor/shared/legacy-runtime-model-providers.ts, src/commands/doctor/shared/legacy-config-core-normalizers.ts, src/agents/harness/policy.ts)
    • steipete: History shows earlier Codex app-server lifecycle/module work in the startup path, which is adjacent to the reported app-server timeout behavior. (role: feature-history contributor; confidence: medium; commits: 8d72aafdbb8d; files: extensions/codex/src/app-server/attempt-startup.ts, extensions/codex/src/app-server/shared-client.ts)
    • openperf: Authored the recent safe legacy Codex model merge work in the central doctor migration surface implicated by the open migration-plan follow-up. (role: recent doctor migration contributor; confidence: medium; commits: e06f6ffc3e87; files: src/commands/doctor/shared/legacy-config-migrations.runtime.models.ts, src/commands/doctor/shared/legacy-config-migrate.test.ts)
    • ooiuuii: Open PR fix(doctor): gate legacy Codex canonicalization on a migration plan #93180 is the current candidate for the shared legacy Codex migration-plan contract across doctor route, auth, and session repair surfaces. (role: open candidate fix author; confidence: medium; commits: 27176d5379be; files: 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)
    • zhangguiping-xydt: Open PR fix(codex): bound shared app-server startup waits #89442 targets the adjacent Codex initialize/startup timeout boundary that can surface as the reported startup timeout. (role: open adjacent startup fix author; confidence: medium; commits: 108cbade73ea; files: 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 keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:crash-loopCrash, hang, restart loop, or process-level availability failure.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 6, 2026
  3. added
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 19, 2026
  4. openclaw-barnacle commented on Jul 6, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. openclaw-barnacle commented on Jul 14, 2026

    @openclaw-barnacle

    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.

  6. locked as resolved and limited conversation to collaborators on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions