Update tool timeout settings for Todo operations to improve performance consistency

- Increased the timeout values for `TodoWrite` and `TodoRead` from 5 seconds to 15 seconds in both the agent and UI components, ensuring better handling of longer operations and reducing potential timeouts.
This commit is contained in:
Pawan Osman
2026-07-15 18:32:20 +03:00
parent 4286a28ce3
commit e9d0b96931
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ export const TOOL_TIMEOUT_MS: Record<string, number> = {
CallMcpTool: 45_000,
FetchMcpResource: 30_000,
ListMcpResources: 15_000,
TodoWrite: 5_000,
TodoRead: 5_000,
TodoWrite: 15_000,
TodoRead: 15_000,
WritePlan: 10_000,
SwitchMode: 5_000,
// Foreground Task budget (bg subagents use BG_SUBAGENT_MAX_MS in loop).
+2 -2
View File
@@ -99,8 +99,8 @@ const TOOL_TIMEOUT_DEFAULTS: { name: string; sec: number }[] = [
{ name: "CallMcpTool", sec: 45 },
{ name: "FetchMcpResource", sec: 30 },
{ name: "ListMcpResources", sec: 15 },
{ name: "TodoWrite", sec: 5 },
{ name: "TodoRead", sec: 5 },
{ name: "TodoWrite", sec: 15 },
{ name: "TodoRead", sec: 15 },
{ name: "WritePlan", sec: 10 },
{ name: "SwitchMode", sec: 5 },
{ name: "Task", sec: 360 },