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
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
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
JakeHillion
scheduled this pull request to auto merge when all checks succeed 2026-12-06 14:00:43 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:
the variable