agent-Specialization/modules/sub_agent
JOJO 72a49a7c8d fix: 修复对话计时器持久化、子智能体工具美化与状态查询,统一后台通知池
- 新增 server/work_timer.py,在对话真正空闲(无前台任务、无后台子智能体/后台命令/压缩)时持久化 work_timer,并同步内存副本,解决刷新后计时器回退问题。
- server/chat_flow_task_main.py / chat_flow.py / tasks/models.py 在任务结束/取消时按空闲判定决定是否持久化。
- 前端 lifecycle.ts 在仍有后台任务时不提前停止计时器。
- 子智能体工具(create/terminate/get_status)渲染美化,task 参数放在顶部元信息区。
- 子智能体状态查询支持返回「已完成」「已终止」「不存在」;修复 wait_for_completion 在 final_result 就绪前返回导致的「ID 被占用」误报。
- 统一后台完成通知池 poll_completion_notifications,合并子智能体与后台 run_command 两路轮询,避免逐条触发工作循环与单工作区互斥冲突。
- 删除本次新增的各类 debug_log / notify_pool_log 调用及辅助脚本。
2026-06-25 04:16:44 +08:00
..
__init__.py fix(sub_agent): export TERMINAL_STATUSES in package __init__ 2026-06-20 12:15:18 +08:00
creation.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00
manager.py fix: 修复对话计时器持久化、子智能体工具美化与状态查询,统一后台通知池 2026-06-25 04:16:44 +08:00
prompts.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00
state.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00
stats.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00
task.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00
toolkit.py fix(sub_agent): add missing datetime import in toolkit.py 2026-06-21 01:50:55 +08:00
tools.py refactor(sub_agent): 子智能体从 Node.js 子进程改为主进程内 Python 协程 2026-06-20 00:26:45 +08:00