Failed /BTW fork - Code 32603

Open 💬 2 comments Opened Aug 11, 2026 by JDLondon7
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

0.147.0

What subscription do you have?

Pro

Which model were you using?

5.6 Sol Medium

What platform is your computer?

Linunx -Arm64 - Debian

What terminal emulator and version are you using (if applicable)?

_No response_

Codex doctor report

What issue are you seeing?

Error message

What steps can reproduce the bug?

Uploaded thread: 019fe808-217e-7942-820f-76c818f3bd85

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 17 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #37421

Powered by Codex Action

jdcodes1 · 9 days ago

Code -32603 is the JSON-RPC internal-error code the app-server returns when thread/fork fails, and /btw runs exactly that. The most common cause on 0.147 is the thread-history projection invariant failing during the paginated fork — diagnosed in #38317 (expected ordinal N, got N-1, from thread-store/src/local/thread_history_materialization.rs), with the same defect also breaking resume (#38552) and hiding threads from codex resume (#38341).

If you still have the session, the exact message would confirm it: the error line above the -32603 should read failed to prepare paginated fork: thread history projection for <thread-id> expected ordinal …. If it says something else, that's worth pasting here — but if it matches, this is a duplicate of #38317 and the fix there (idempotent duplicate-ordinal skip + projection rebuild on invariant failure) covers it.