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
Thread runner kills agent child processes on turn settle; permission requests fail while settling #8
Two related failure modes for long-running work spawned by an agent inside a Solenta thread, both observed repeatedly while cutting the v0.2.0 / nightly releases on 2026-08-14:
Child processes are SIGTERMed the moment a turn settles. A backgrounded build (npm ci / packaging, ~15 min) launched via the agent harness's background-task mechanism was killed mid-run every time the agent's turn ended. Log evidence: npm error signal SIGTERM mid npm ci, truncated output archives. This happened on two consecutive attempts; the user never restarted the app.
Tool permission requests fail with AbortError: Stream closed while a run is settling/reconnecting. During these windows even trivial gated commands (echo) are rejected; only pre-allowlisted read-only commands work. The channel recovers, then flaps again — the agent must blind-retry across turns.
Impact
Any agent task longer than its own turn (release builds, large test suites, deploys) silently dies at teardown. The completion notification then arrives as an ambiguous "stopped / no completion record" which reads like success.
The only workaround found: detach with nohup bash -c '...' > log 2>&1 & disown so the process reparents to launchd, then poll the log file on later turns. That worked — the detached build survived multiple settles.
Expected
Either let harness-tracked background tasks survive turn settle (and deliver their completion event on a later turn), or clearly document/signal that turn teardown kills children so agents detach intentionally.
Permission requests raised during settle should queue or fail with a retryable error the agent can distinguish from a user denial, rather than a transport abort.
Repro sketch
In any thread, have the agent run a multi-minute command via a backgrounded shell, end the turn, and watch the process receive SIGTERM. For (2), send permission-gated tool calls while the run is settling.
Context: surfaced while shipping the auto-updater + release pipeline (branch coder/let-s-implement-an-auto-updater-i-want-2-8841cd, commits f61ae80 / 7db39b2 contain the unrelated build-script fixes it also surfaced).
Activity
Merge pull request #9 from currentbits/coder/thread-runner-kills-agen…