[Bug]: A ~10s process-launcher timeout SIGKILLs the helper and every running Claude agent launched through it (Linux) #48227
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- On Linux, run two or more Claude threads at once. Each one is launched through the process-launcher helper, as it has been since #45888.
- Put the host under enough memory or swap pressure that starting a process can take ~10 s. In our case swap was 98% full: 15.6 of 15.9 GiB.
- Have any spawn go through the helper during that stall. In our case it was
tailscale serve status --json.
Expected behavior#
A slow reply from the helper should not end live agent sessions. A spawn that times out should fail on its own, or be retried, and agents that are already running should keep going.
Actual behavior#
The server treats the helper as dead, SIGKILLs it, and then SIGKILLs every Claude process group that was started through it. Unrelated turns all fail at the same moment with Claude Code process terminated by signal SIGKILL. One of the sessions had been running for 2.5 h. The server then kills each replacement helper about every 10 s while the stall lasts.
Here is the timeline from an auditd rule on kill/tkill/tgkill with SIGKILL (UTC). SERVER is the server process (.../apps/server/dist/bin.mjs):
11:59:01.310 spawn `tailscale serve status --json` sent to helper
11:59:11.310 kill(HELPER_PID, SIGKILL) sender=SERVER target comm=t3code (proxy helper)
11:59:11.316 kill(-CLAUDE_A_PGID, SIGKILL) sender=SERVER target comm=claude (+ its sh)
11:59:11.321 kill(-CLAUDE_B_PGID, SIGKILL) sender=SERVER target comm=claude (+ its sh)
11:59:21.479 kill(NEW_HELPER, SIGKILL) sender=SERVER
11:59:31.589 kill(NEW_HELPER, SIGKILL) sender=SERVER
11:59:42.687 kill(NEW_HELPER, SIGKILL) sender=SERVER
11:59:46 a new helper stays up
Two things are not the cause:
- The kernel or cgroup OOM killer:
oom_killis 0 at every level fromuser.slicedown to the agent scope. - systemd-oomd: it logged nothing.
Impact#
Major degradation or frequent failure
Version or commit#
v0.1.14-nightly.20261130.5479 (desktop, Linux). As far as I can tell from the source, nightly 20261203.5651 behaves the same way: startTimer in patches/@effect__platform-node-shared@4.2.0.patch still calls this.stop(ETIMEDOUT). The heard re-arm only covers replies that are already queued behind a blocked event loop, so a helper that really is slow is still killed.
Environment#
Ubuntu 26.04, kernel 7.0, 30 GiB RAM with 16 GiB swap, Electron desktop build.
Logs or stack traces#
server.trace.ndjson — NonBlockingSpawner.spawn spans failing at ~10000 ms:
11:59:01.310 10019 ms PlatformError: Unknown: ChildProcess.spawn (/usr/bin/env -- tailscale serve status --json)
11:59:11.320 10161 ms PlatformError: Unknown: ChildProcess.spawn (/usr/bin/env -- /usr/bin/systemctl --user show t3code-claude-<id>.scope ...)
11:59:11.434 10051 ms PlatformError: Unknown: ChildProcess.spawn (... cloudflared tunnel ... run)
11:59:11.480 10053 ms PlatformError: Unknown: ChildProcess.spawn (/usr/bin/env -C <repo> -- git symbolic-ref --quiet HEAD)
11:59:21.541 10051 ms ... (repeats for each replacement helper until 11:59:46)
Thread error: "Claude Code process terminated by signal SIGKILL."
AgentScope.stop / agentScope.oomKilled then ran their own `systemctl --user show` through the same stalled launcher,
were interrupted after ~10 s, and so could not classify the exit.
Workaround#
Keep swap from filling up, for example by restarting memory-heavy apps. Updating to the latest nightly does not help.
Notes#
This seems to come from three PRs that each make sense alone:
- #44095 sends launches through Effect's proxy helper and kills the helper when a reply times out.
- #45888 launches Claude agents through that helper on Linux.
- #45965 ties launched commands to the helper's lifetime.
Some possible directions:
- Don't kill the helper just because one reply timed out. Fail that spawn, and only replace the helper if it really stops responding, for example after a liveness ping fails over a longer window.
- Or retire the old helper without killing the commands it already started, the way it is retired after a credential change.
- Or keep long-lived agent processes off the shared helper, so a stall caused by short commands can't take them down.
The kill happened during host memory pressure, so it is related to #43888, #47050 and #43662. Here, though, the SIGKILL comes from T3 itself and not from the OOM killer or systemd-oomd.
tanstack-source added labelsbug
Sign in to join this conversation.