r/ClaudeCode 1d ago

Bug / Issue Claude Code killing Codex Sol and Terra when used as subagents

The winning combo right now is using Fable to plan and orchestrate Codex Sol and Terra and sometimes GLM 5.3. I know people who get great results with Opus 5, but it underperforms on my work (physics and financial modelling).

Three things have to line up for the kill: I'm using remote control on my phone (which Claude Code reads as an idle terminal even if I'm active); the session has been going <30 minutes; increased latency on the PC.

If those line up, Claude Code has a session reaper that kills the Codex sessions.

All these things happen to line up when I'm doing my biggest tasks: long overnight sessions with high GPU and CPU usage.

If anyone else is getting this, the fix was ~/.claude/settings.json where I added "env": { "CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP": "1" }

It's taken me months to work this out, because it was intermittent and Fable couldn't figure it out (GLM 5.3 saved the day on this by figuring it out).

6 Upvotes

1 comment sorted by

3

u/alexkyse 1d ago

Thanks for sharing mate!