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
[Bug] Shell timeout does not settle a running tool part, leaving parent subagent blocked indefinitely #38276
A shell tool call with an explicit timeout of 120000 ms remained in running state for about 19 minutes. The timeout did not produce a completed or error tool result, and the child session never emitted a terminal state. Because the child was launched through the Task tool, the parent agent remained blocked waiting for it.
The child assistant message had no finish value and no error. The child session still had one in-progress todo item, but the main issue was that the verification shell call never settled.
Expected behavior:
After the configured timeout, the command is terminated.
If process termination or stream cleanup fails, the tool call is still finalized as an error/timeout.
The child session receives a terminal error.
The parent Task call receives a structured failure instead of waiting indefinitely.
Plugins
oh-my-openagent
OpenCode version
1.18.4
Steps to reproduce
Launch a subagent through the Task tool.
Ask it to run a long verification command with an explicit shell timeout, for example: bun run i18n:sync && bun run typecheck && bunx oxlint ...
Let the command enter a state where the process or one of its child processes does not terminate cleanly.
Observe that the shell tool part remains running after the timeout.
Observe that the child session and parent Task call remain blocked.
Activity
github-actions commentedon Jul 22, 2026
This issue might be a duplicate of existing issues. Please check:
status=runningindefinitely after subprocess exits — pipe FD leak in spawn #29294: shell tool staysstatus=runningindefinitely after subprocess exits — pipe FD leak in spawn (same symptom: tool part stuck inrunningstate)