Skip to content

fix(codex): update silent-hang workaround hint + wire into TTFB watchdog#33133

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-5bf34d29
May 27, 2026
Merged

fix(codex): update silent-hang workaround hint + wire into TTFB watchdog#33133
teknium1 merged 2 commits into
mainfrom
hermes/hermes-5bf34d29

Conversation

@teknium1

@teknium1 teknium1 commented May 27, 2026

Copy link
Copy Markdown
Contributor

Salvage of #33034 (@EvilHumphrey) onto current main.

Summary

The Codex silent-hang hint for ChatGPT OAuth accounts recommended gpt-5.4-codex as the workaround for intermittent gpt-5.5 no-TTFB / stale-call failures. That model name doesn't exist in the OpenAI Codex catalog — users following the hint hit a second error trying to switch to a phantom model.

The actual workarounds:

  • gpt-5.4 — real sibling model, works on the same OAuth profile
  • gpt-5.3-codex — the actual Codex-tagged variant

This PR also wires the same hint into the TTFB watchdog kill path in agent/chat_completion_helpers.py — that's the path most users actually hit first on gpt-5.5 no-first-byte failures (e.g. the CRUSADER report in support thread getting "No first byte from provider"), not the stale-call timeout path.

Changes

  • run_agent.py: hint text now recommends gpt-5.4 and gpt-5.3-codex; gpt-5.4-codex kept only as a caveat ("unsupported on some ChatGPT Codex accounts")
  • agent/chat_completion_helpers.py: TTFB watchdog now calls _codex_silent_hang_hint and appends it to the user-facing status when killing a stale connection
  • tests/agent/test_codex_ttfb_watchdog.py: new coverage for the TTFB watchdog path
  • tests/run_agent/test_codex_silent_hang_hint.py: updated assertions for the new hint text

Validation

Before After
Stale-call timeout hint gpt-5.4-codex (phantom) gpt-5.4 + gpt-5.3-codex (real)
TTFB watchdog hint Generic "reconnecting" Includes the workaround hint
Targeted tests 14/14 passing

Attribution

Cherry-picked from @EvilHumphrey's #33034. AUTHOR_MAP updated in follow-up commit. Original PR superseded #33128 (my earlier attempt that only fixed the stale-call hint without the TTFB wiring) — that one is closed with credit pointer.

User reports addressed: CRUSADER (Discord support, getting "No response from provider for 90s" with the misleading gpt-5.4-codex suggestion).

Infographic

codex-silent-hang-hint-fix

@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-5bf34d29 vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 9386 on HEAD, 9386 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4963 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@teknium1 teknium1 merged commit f0be322 into main May 27, 2026
24 checks passed
@teknium1 teknium1 deleted the hermes/hermes-5bf34d29 branch May 27, 2026 08:52
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder provider/openai OpenAI / Codex Responses API labels May 27, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Salvage of #33034 by @EvilHumphrey onto current main. Supersedes closed #33128 (same author's earlier attempt that only fixed the stale-call hint without the TTFB wiring).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P3 Low — cosmetic, nice to have provider/openai OpenAI / Codex Responses API type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants