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
Add bounded timeout for direct subagent tool waits #365
autonomous: likelyProbably hands-off: clearly worth fixing, agent can do it, minor judgment needed.from-prIssue created from an external PR during triagepriority: mediumP2 - normal priority
Triage: Confirmed. The direct subagent path (handle_run_subagent in crates/jcode-app-core/src/server/client_actions.rs:329-336) awaits the spawned tool task with no timeout, and the underlying subagent tool (crates/jcode-app-core/src/tool/task.rs:218) calls agent.run_once_capture(¶ms.prompt).await with no bounded wait. If the child session never produces a final answer (stuck/hung model turn), the direct call blocks indefinitely.
Fix path: wrap the await in a tokio::time::timeout (configurable, with a sane default) and surface a timeout error/partial result. Minor judgment needed on default duration and whether to return partial transcript on timeout, so autonomous: likely. From PR #311.
autonomous: likelyProbably hands-off: clearly worth fixing, agent can do it, minor judgment needed.from-prIssue created from an external PR during triagepriority: mediumP2 - normal priority
Activity
1jehuang commentedon Jun 25, 2026
Triage: Confirmed. The direct subagent path (handle_run_subagent in crates/jcode-app-core/src/server/client_actions.rs:329-336) awaits the spawned tool task with no timeout, and the underlying subagent tool (crates/jcode-app-core/src/tool/task.rs:218) calls
agent.run_once_capture(¶ms.prompt).awaitwith no bounded wait. If the child session never produces a final answer (stuck/hung model turn), the direct call blocks indefinitely.Fix path: wrap the await in a
tokio::time::timeout(configurable, with a sane default) and surface a timeout error/partial result. Minor judgment needed on default duration and whether to return partial transcript on timeout, so autonomous: likely. From PR #311.1jehuang commentedon Jun 25, 2026
Fixed in
b96dfa47(pending release). Built and tests pass on Linux. See commit message for the specific change for this issue.Fix several triaged GH issues (#369, #371, #373, #365, #374, #402)
1jehuang commentedon Jun 28, 2026
Released in v0.32.0. Run
jcode updateto get it.Fix several triaged GH issues (1jehuang#369, 1jehuang#371, 1jehuang#373…
Fix several triaged GH issues (1jehuang#369, 1jehuang#371, 1jehuang#373…