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
Commit 676e030
Browse filesBrowse the repository at this point in the historyBrowse files
fix(opencode): add configurable timeout to Task tool
Task subagents had no timeout, so a hung subagent blocked the parent
session indefinitely with no way to recover. Adds an optional
timeout parameter (milliseconds), a RuntimeFlags-backed default, and
a cancel-and-fail-on-timeout path, mirroring the Bash tool's existing
timeout implementation.
Closesanomalyco#15080
"This should only be set if you mean to resume a previous task (you can pass a prior task_id and the task will continue the same subagent session as before instead of creating a fresh one)",
50
51
}),
51
52
command: Schema.optional(Schema.String).annotate({description: "The command that triggered this task"}),
53
+
timeout: Schema.optional(PositiveInt).annotate({description: "Optional timeout in milliseconds"}),
`task tool terminated subagent after exceeding timeout ${timeoutMs} ms. If this task is expected to take longer, retry with a larger timeout value in milliseconds.`,
"description": "This should only be set if you mean to resume a previous task (you can pass a prior task_id and the task will continue the same subagent session as before instead of creating a fresh one)",
326
326
"type": "string",
327
327
},
328
+
"timeout": {
329
+
"description": "Optional timeout in milliseconds",
0 commit comments