agent-Specialization/static/src/stores
JOJO 8d6c59deed feat: 优化轮询机制(重试、清理、错误提示)
Phase 3 轮询优化:

1. 添加重试机制(task.ts)
   - 新增 pollingErrorCount 状态字段
   - 添加 5 秒超时(AbortSignal.timeout)
   - 连续失败 5 次后停止轮询并通知用户
   - 成功后重置错误计数

2. 改进错误提示(taskPolling.ts)
   - 根据 error_type 提供友好提示
   - 支持 api_error、timeout、quota_exceeded 等类型
   - 延长错误提示显示时间(8秒)

3. 添加任务清理机制(tasks.py)
   - 新增 cleanup_old_tasks() 方法
   - 清理超过 1 小时的已完成任务
   - 启动后台定时器(每 10 分钟清理一次)
   - 减少内存占用,支持长期运行

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-04 01:04:35 +08:00
..
chat.ts fix: remove legacy file edit tags 2026-03-17 22:43:51 +08:00
chatActions.ts feat(web): remove socket dependency from main chat flow 2026-04-03 11:34:42 +08:00
connection.ts feat: restore run mode personalization 2025-12-02 19:03:33 +08:00
conversation.ts chore: sync workspace updates 2026-02-23 01:20:41 +08:00
file.ts fix: reduce workspace scans in host mode 2026-02-06 17:09:19 +08:00
focus.ts feat: modularize frontend layout 2025-11-25 22:41:15 +08:00
input.ts feat: add video send/view flow and guard model constraints 2026-01-30 17:04:33 +08:00
model.ts feat: update model support and multimodal 2026-02-25 01:41:05 +08:00
monitor.ts fix: remove legacy file edit tags 2026-03-17 22:43:51 +08:00
personalization.ts fix: remove legacy file edit tags 2026-03-17 22:43:51 +08:00
policy.ts feat: polish admin policy UI and tool selection 2026-01-05 13:34:00 +08:00
resource.ts chore: pause container polling when tab hidden 2025-12-16 22:27:19 +08:00
subAgent.ts fix: improve sub-agent ui and state 2026-03-11 15:40:28 +08:00
task.ts feat: 优化轮询机制(重试、清理、错误提示) 2026-04-04 01:04:35 +08:00
tool.ts feat: polish admin policy UI and tool selection 2026-01-05 13:34:00 +08:00
ui.ts feat: stable version before virtual monitor timing fix 2025-12-13 17:12:12 +08:00
upload.ts feat: update image and video sending 2026-02-25 13:20:27 +08:00