When the system reports critical memory pressure and a session has been
idle for 30 minutes, Claude Code terminates its background shells. On
maverick that killed long-running watchers using a few megabytes, while
the process actually exhausting memory kept running until the kernel's
OOM killer dealt with it.
Set CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP in the managed settings'
env, so reclaiming memory is left to the OOM killer.
Test plan:
- CI
- Built maverick's toplevel: /etc/claude-code/managed-settings.json sets
the variable