Commit c324282140e1546c8fba7e9264b8dababd60d9b7

Authored by yibo
1 parent 74c14ff3

fix(acp): disable 45s idle timeout limit for Claude CLI

packages/acp-core/protocol/ClaudeCliProtocol.js
@@ -202,9 +202,9 @@ class ClaudeCliProtocol extends EventEmitter { @@ -202,9 +202,9 @@ class ClaudeCliProtocol extends EventEmitter {
202 * @returns {Promise<void>} 202 * @returns {Promise<void>}
203 */ 203 */
204 sendPrompt(text) { 204 sendPrompt(text) {
205 - // 两级超时:对话态 45s (检测 API hang/静默限速),工具执行态 5min (Bash 长任务如 pip install)  
206 - const IDLE_TIMEOUT_CHAT_MS = 45_000; // 正常对话无活动上限  
207 - const IDLE_TIMEOUT_TOOL_MS = 5 * 60_000; // 工具执行无活动上限 (5分钟) 205 + // 按照用户需求取消闲置超时限制 (设置为 24 小时)
  206 + const IDLE_TIMEOUT_CHAT_MS = 24 * 60 * 60_000; // 已取消正常对话无活动上限
  207 + const IDLE_TIMEOUT_TOOL_MS = 24 * 60 * 60_000; // 已取消工具执行无活动上限
208 208
209 return new Promise((resolve, reject) => { 209 return new Promise((resolve, reject) => {
210 if (!this._child || !this.isConnected) { 210 if (!this._child || !this.isConnected) {
system/agents/master/.claude/scheduled_tasks.json
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 "cron": "*/5 * * * *", 5 "cron": "*/5 * * * *",
6 "prompt": "执行系统巡检:读取 plan.md 和 todo.md,检查所有任务状态。已完成的更新标记,卡住的分析原因后自主处理(重新分发或修复),未开始的按优先级立即分发。不要请示用户,直接行动。", 6 "prompt": "执行系统巡检:读取 plan.md 和 todo.md,检查所有任务状态。已完成的更新标记,卡住的分析原因后自主处理(重新分发或修复),未开始的按优先级立即分发。不要请示用户,直接行动。",
7 "createdAt": 1775231859266, 7 "createdAt": 1775231859266,
8 - "lastFiredAt": 1775236348892, 8 + "lastFiredAt": 1775237249762,
9 "recurring": true 9 "recurring": true
10 }, 10 },
11 { 11 {
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 "cron": "*/5 * * * *", 21 "cron": "*/5 * * * *",
22 "prompt": "执行系统巡检:读取 plan.md 和 todo.md,检查所有任务状态。已完成的更新标记,卡住的分析原因后自主处理(重新分发或修复),未开始的按优先级立即分发。不要请示用户,直接行动。", 22 "prompt": "执行系统巡检:读取 plan.md 和 todo.md,检查所有任务状态。已完成的更新标记,卡住的分析原因后自主处理(重新分发或修复),未开始的按优先级立即分发。不要请示用户,直接行动。",
23 "createdAt": 1775235820776, 23 "createdAt": 1775235820776,
24 - "lastFiredAt": 1775236571111, 24 + "lastFiredAt": 1775237170680,
25 "recurring": true 25 "recurring": true
26 }, 26 },
27 { 27 {