Worker thread gets stuck on "Working" right before compacting context after tool call.
Resolved 💬 1 comment Opened Mar 11, 2026 by Pimpmuckl Closed Mar 11, 2026
What version of Codex CLI is running?
0.114.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.4
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What terminal emulator and version are you using (if applicable)?
Windows Terminal Preview - 1.25.622.0
What issue are you seeing?
When an agent calls a tool and is right at the edge of the compaction threshold, the agent gets stuck.
What steps can reproduce the bug?
- Agent calls a tool with very small context window left
- Agent gets stuck. No compaction is called nor does the agent continue.
What is the expected behavior?
- Agent calls a tool with ver small context left
- Context gets compacted
- Agent resumes
Additional information
My hunch is that it's due to the tool call output going over the compaction threshold. And there being a race.
Every time I manually force-steered the agent afterwards, it immediately did a context compaction and resumed correctly after that.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗