agent-Specialization/server
JOJO 801d20591c feat: 实现 REST API + 轮询模式,支持页面刷新后任务继续执行
主要改进:
- 新增 REST API 任务管理接口 (/api/tasks)
- 实现 150ms 轮询机制,提供流畅的流式输出体验
- 支持页面刷新后自动恢复任务状态
- WebSocket 断开时检测 REST API 任务,避免误停止
- 修复堆叠块融合问题,刷新后内容正确合并
- 修复思考块展开/折叠逻辑,只展开正在流式输出的块
- 修复工具块重复显示问题,通过注册机制实现状态更新
- 修复历史不完整导致内容丢失的问题
- 新增 tool_intent 事件处理,支持打字机效果显示
- 修复对话列表排序时 None 值比较错误

技术细节:
- 前端:新增 taskPolling.ts 和 task store 处理轮询逻辑
- 后端:TaskManager 管理任务生命周期和事件存储
- 状态恢复:智能判断是否需要从头重建,避免内容重复
- 工具块注册:恢复时注册到 toolActionIndex,支持状态更新
- Intent 显示:0.5-1秒打字机效果,历史加载直接显示

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 03:12:46 +08:00
..
__init__.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
admin.py fix: refine host mode controls and kimi-k2.5 support 2026-01-28 11:19:50 +08:00
api_auth.py feat: add api admin ui and container status fix 2026-01-25 10:49:52 +08:00
api_v1.py feat: update model support and multimodal 2026-02-25 01:41:05 +08:00
app_legacy.py feat: update model support and multimodal 2026-02-25 01:41:05 +08:00
app.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
auth_helpers.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
auth.py fix: refine host mode controls and kimi-k2.5 support 2026-01-28 11:19:50 +08:00
chat_flow_helpers.py refactor: split terminal and server chat flow modules 2026-03-07 18:38:30 +08:00
chat_flow_pending_writes.py refactor: split pending writes and task support from chat task main 2026-03-07 20:37:58 +08:00
chat_flow_runner_helpers.py refactor: split terminal and server chat flow modules 2026-03-07 18:38:30 +08:00
chat_flow_runner.py refactor: further split runner and tools mixins 2026-03-07 20:25:58 +08:00
chat_flow_runtime.py refactor: further split runner and tools mixins 2026-03-07 20:25:58 +08:00
chat_flow_stream_loop.py refactor: split chat flow streaming loop 2026-03-07 21:21:14 +08:00
chat_flow_task_main.py refactor: split chat flow streaming loop 2026-03-07 21:21:14 +08:00
chat_flow_task_runner.py refactor: isolate chat task main pipeline module 2026-03-07 20:32:02 +08:00
chat_flow_task_support.py refactor: split pending writes and task support from chat task main 2026-03-07 20:37:58 +08:00
chat_flow_tool_loop.py refactor: extract tool execution loop from chat task main 2026-03-07 20:41:10 +08:00
chat_flow.py refactor: split terminal and server chat flow modules 2026-03-07 18:38:30 +08:00
chat.py feat: add skills framework and controls 2026-02-07 00:20:35 +08:00
context.py feat: update model support and multimodal 2026-02-25 01:41:05 +08:00
conversation_stats.py refactor: split terminal and server chat flow modules 2026-03-07 18:38:30 +08:00
conversation.py fix: review filename sanitize and tool output 2026-03-08 00:03:28 +08:00
extensions.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
files.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
monitor.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
security.py feat: add api v1 bearer auth and polling docs 2026-01-24 02:35:07 +08:00
socket_handlers.py feat: 实现 REST API + 轮询模式,支持页面刷新后任务继续执行 2026-03-08 03:12:46 +08:00
state.py fix: improve cancellation flow and api error tracing 2026-01-30 15:36:44 +08:00
status.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
tasks.py feat: 实现 REST API + 轮询模式,支持页面刷新后任务继续执行 2026-03-08 03:12:46 +08:00
usage.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00
utils_common.py refactor: split web_server into modular architecture 2026-01-22 09:21:53 +08:00