openclaw - 💡(How to fix) Fix [Bug]: openai-codex/gpt-5.5 hangs silently on 2026.4.25 — no tokens streamed, no error logged, legacy OAuth path [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#72966Fetched 2026-04-28 06:29:22
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

On OpenClaw 2026.4.25, agent runs targeting openai-codex/gpt-5.5 hang indefinitely on first turn. The model never streams a token, no error is logged, and the only way to recover is an external abort (stop button / external timeout). The trajectory artifact shows assistantTexts: [] and itemLifecycle.startedCount: 0 — the run never actually starts producing output.

The legacy openai-codex/gpt-5.4 path on the same OAuth profile, same host, same gateway works fine. Direct codex exec --model gpt-5.5 on the same OAuth profile also works fine (~4s round-trip). Direct POST /v1/responses against gpt-5.5 with API-key auth also works (~1.9s, returns gpt-5.5-2026-04-23).

So upstream is healthy and OAuth is healthy. The hang is inside the OpenClaw openai-codex-responses adapter for gpt-5.5 specifically.

Error Message

On OpenClaw 2026.4.25, agent runs targeting openai-codex/gpt-5.5 hang indefinitely on first turn. The model never streams a token, no error is logged, and the only way to recover is an external abort (stop button / external timeout). The trajectory artifact shows assistantTexts: [] and itemLifecycle.startedCount: 0 — the run never actually starts producing output. gpt-5.5 should respond on the same OAuth profile that works in the codex CLI. Or, if some adapter-level incompatibility exists, it should surface a clear error rather than silently hang. "finalStatus": "error",

  • #70834 / #70854 — gpt-5.5 catalog support added to the openai-codex provider. Catalog now resolves (no "Unknown model" error), but request execution silently hangs. Likely the routing patch landed without proper request-path coverage for gpt-5.5.
  • #67158 — different OAuth-rejection symptom for older 5.x variants; this report is distinct (no auth error, model is 5.5 not 5.1-5.3). Per #64744's analysis, CodexAppServerClient.initialize() and related request-path entry points lack timeoutMs protection. Even if the underlying gpt-5.5 routing bug has its own root cause, adding the timeout would at minimum surface a real error instead of a silent infinite hang.

Root Cause

Suggested fix direction

Per #64744's analysis, CodexAppServerClient.initialize() and related request-path entry points lack timeoutMs protection. Even if the underlying gpt-5.5 routing bug has its own root cause, adding the timeout would at minimum surface a real error instead of a silent infinite hang.

Fix Action

Workaround

Setting agents.defaults.model.primary = openai-codex/gpt-5.4 fully restores agent function. No re-auth needed.

Code Example

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.5",
        "fallbacks": []
      },
      "models": {
        "openai-codex/gpt-5.4": {},
        "openai-codex/gpt-5.5": {}
      },
      "timeoutSeconds": 300,
      "thinkingDefault": "medium"
    }
  },
  "auth": {
    "profiles": {
      "openai-codex:<redacted>": {
        "provider": "openai-codex",
        "mode": "oauth"
      }
    }
  }
}

---

{
  "type": "model.completed",
  "provider": "openai-codex",
  "modelId": "gpt-5.5",
  "modelApi": "openai-codex-responses",
  "data": {
    "aborted": true,
    "externalAbort": true,
    "timedOut": true,
    "idleTimedOut": false,
    "compactionCount": 0,
    "promptError": "This operation was aborted | This operation was aborted",
    "promptErrorSource": "prompt",
    "assistantTexts": [],
    "messagesSnapshot": []
  }
}

---

{
  "type": "trace.artifacts",
  "data": {
    "finalStatus": "error",
    "aborted": true,
    "externalAbort": true,
    "timedOut": true,
    "itemLifecycle": {
      "startedCount": 0,
      "completedCount": 0,
      "activeCount": 0
    },
    "toolMetas": [],
    "didSendViaMessagingTool": false
  }
}

---

2026-04-27T09:18:11 [gateway] agent model: openai-codex/gpt-5.5
...
2026-04-27T10:16:38 [agent/embedded] embedded run failover decision:
  runId=7a85c138-... stage=assistant decision=surface_error
  reason=timeout from=openai-codex/gpt-5.5 profile=sha256:2ed3747bab55
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Summary

On OpenClaw 2026.4.25, agent runs targeting openai-codex/gpt-5.5 hang indefinitely on first turn. The model never streams a token, no error is logged, and the only way to recover is an external abort (stop button / external timeout). The trajectory artifact shows assistantTexts: [] and itemLifecycle.startedCount: 0 — the run never actually starts producing output.

The legacy openai-codex/gpt-5.4 path on the same OAuth profile, same host, same gateway works fine. Direct codex exec --model gpt-5.5 on the same OAuth profile also works fine (~4s round-trip). Direct POST /v1/responses against gpt-5.5 with API-key auth also works (~1.9s, returns gpt-5.5-2026-04-23).

So upstream is healthy and OAuth is healthy. The hang is inside the OpenClaw openai-codex-responses adapter for gpt-5.5 specifically.

Environment

  • OpenClaw: 2026.4.25 (aa36ee6) — installed via npm global
  • Host: macOS 25.4.0 / arm64 (Apple Silicon M1)
  • Node: v25.9.0
  • codex CLI: v0.118.0
  • Provider: openai-codex (legacy OAuth path, not the new bundled codex/* harness)
  • Auth: ChatGPT/Codex OAuth (Plus subscription)
  • Channel: webchat (also reproduced via openclaw agent --agent main --message ...)

Config (relevant excerpt)

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "openai-codex/gpt-5.5",
        "fallbacks": []
      },
      "models": {
        "openai-codex/gpt-5.4": {},
        "openai-codex/gpt-5.5": {}
      },
      "timeoutSeconds": 300,
      "thinkingDefault": "medium"
    }
  },
  "auth": {
    "profiles": {
      "openai-codex:<redacted>": {
        "provider": "openai-codex",
        "mode": "oauth"
      }
    }
  }
}

Steps to reproduce

  1. On OpenClaw 2026.4.25, with an OAuth-backed openai-codex profile that works for gpt-5.4, set agents.defaults.model.primary to openai-codex/gpt-5.5.
  2. Hot-reload picks up the change ([reload] config hot reload applied).
  3. Send any prompt via webchat or openclaw agent.
  4. Run hangs. No tokens stream. No errors in gateway.log / gateway.err.log other than the eventual external-abort surfaced ~5 min later by the embedded run timeout (timeoutSeconds: 300).

Expected behavior

gpt-5.5 should respond on the same OAuth profile that works in the codex CLI. Or, if some adapter-level incompatibility exists, it should surface a clear error rather than silently hang.

Actual behavior — trajectory artifact

From ~/.openclaw/agents/main/sessions/<runId>.trajectory.jsonl:

{
  "type": "model.completed",
  "provider": "openai-codex",
  "modelId": "gpt-5.5",
  "modelApi": "openai-codex-responses",
  "data": {
    "aborted": true,
    "externalAbort": true,
    "timedOut": true,
    "idleTimedOut": false,
    "compactionCount": 0,
    "promptError": "This operation was aborted | This operation was aborted",
    "promptErrorSource": "prompt",
    "assistantTexts": [],
    "messagesSnapshot": []
  }
}

Followed by:

{
  "type": "trace.artifacts",
  "data": {
    "finalStatus": "error",
    "aborted": true,
    "externalAbort": true,
    "timedOut": true,
    "itemLifecycle": {
      "startedCount": 0,
      "completedCount": 0,
      "activeCount": 0
    },
    "toolMetas": [],
    "didSendViaMessagingTool": false
  }
}

startedCount: 0 is the key signal — the run never even started producing items.

Gateway log evidence

After the gateway restart at 09:18 PDT today:

2026-04-27T09:18:11 [gateway] agent model: openai-codex/gpt-5.5
...
2026-04-27T10:16:38 [agent/embedded] embedded run failover decision:
  runId=7a85c138-... stage=assistant decision=surface_error
  reason=timeout from=openai-codex/gpt-5.5 profile=sha256:2ed3747bab55

Zero auth errors in this window: grep -iE "401|403|oauth|expired|refresh" returns nothing for the openai-codex provider.

A/B isolation evidence

Three orthogonal probes, same machine, same OAuth profile where applicable:

PathModelAuthResultTime
OpenClaw 2026.4.25 embedded rungpt-5.5OAuth❌ hangs foreverabort only
OpenClaw 2026.4.25 embedded rungpt-5.4OAuth✅ worksnormal
codex exec --model gpt-5.5 ...gpt-5.5OAuth✅ works~4s
curl POST /v1/responsesgpt-5.5API key✅ works~1.9s

This isolates the failure to OpenClaw 2026.4.25's openai-codex-responses adapter, specifically when the model is gpt-5.5. Same adapter on gpt-5.4 works fine.

Related issues

  • #64744 — same mechanical pattern (silent hang on init, no timeout protection on CodexAppServerClient.initialize()), but reporter saw it on the new bundled codex/* path while the legacy openai-codex/* path was still working at 2026.4.10. This report describes the same failure mode now affecting the legacy path for gpt-5.5 specifically as of 2026.4.25.
  • #70834 / #70854 — gpt-5.5 catalog support added to the openai-codex provider. Catalog now resolves (no "Unknown model" error), but request execution silently hangs. Likely the routing patch landed without proper request-path coverage for gpt-5.5.
  • #67158 — different OAuth-rejection symptom for older 5.x variants; this report is distinct (no auth error, model is 5.5 not 5.1-5.3).
  • #68033 — Cloudflare-challenge symptom on openai-codex; not reproduced here (no HTML in response, no Cloudflare 403 in logs).

Workaround

Setting agents.defaults.model.primary = openai-codex/gpt-5.4 fully restores agent function. No re-auth needed.

Suggested fix direction

Per #64744's analysis, CodexAppServerClient.initialize() and related request-path entry points lack timeoutMs protection. Even if the underlying gpt-5.5 routing bug has its own root cause, adding the timeout would at minimum surface a real error instead of a silent infinite hang.

extent analysis

TL;DR

The most likely fix is to add a timeout to the CodexAppServerClient.initialize() method to prevent silent hangs when using the openai-codex/gpt-5.5 model.

Guidance

  1. Verify the issue: Confirm that the problem is specific to the openai-codex/gpt-5.5 model and that the openai-codex/gpt-5.4 model works as expected.
  2. Check for request-path coverage: Investigate if the routing patch for gpt-5.5 has proper request-path coverage to ensure that requests are being executed correctly.
  3. Add timeout protection: Consider adding a timeoutMs parameter to the CodexAppServerClient.initialize() method to prevent infinite hangs and surface a real error instead.
  4. Test with a temporary workaround: Set agents.defaults.model.primary to openai-codex/gpt-5.4 to restore agent function and verify that the issue is resolved.

Example

No code snippet is provided as the issue is more related to configuration and potential bugs in the openai-codex-responses adapter.

Notes

The issue seems to be isolated to the openai-codex-responses adapter in OpenClaw 2026.4.25, specifically when using the gpt-5.5 model. The fact that the gpt-5.4 model works fine and that direct requests to the gpt-5.5 model using the codex CLI or curl work as expected suggests that the issue is related to the adapter or the routing configuration.

Recommendation

Apply the workaround by setting agents.defaults.model.primary to openai-codex/gpt-5.4 until a proper fix is implemented, which would involve adding timeout protection to the `Codex

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

gpt-5.5 should respond on the same OAuth profile that works in the codex CLI. Or, if some adapter-level incompatibility exists, it should surface a clear error rather than silently hang.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: openai-codex/gpt-5.5 hangs silently on 2026.4.25 — no tokens streamed, no error logged, legacy OAuth path [1 participants]