You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bash.ts: detached=true leaves zombie processes when command times out #30868
detached: true on non-Windows puts the command in its own process group. When Effect.timeoutOrElse fires (L157), the Effect's scope cleanup only kills the direct child — grandchild processes survive. Meanwhile bash.ts:162-170 treats timeout as a SUCCESS (timedOut: true) and returns it to the AI, so the AI may retry while the original process is still running.
Repro: AI runs a long command (e.g., npm install). It times out. AI gets "Command exceeded timeout" (not an error). AI retries. Original npm is still writing to node_modules. Race condition → corruption.
Fix: Remove detached or add explicit process-group cleanup on timeout.
Activity
github-actions commentedon Jun 5, 2026
This issue might be a duplicate of existing issues. Please check:
detached: truein the bash/shell tool on Linux causes zombie processes, with the same proposed fix (detached: false)