Commit Graph

204 Commits

Author SHA1 Message Date
07be7a1061 feat: gracefully stop tool execution on user request
- Remove direct task.cancel() calls, use stop flag instead
- Monitor stop flag every 100ms during tool execution
- Cancel tool task immediately when stop flag is detected
- Return "命令执行被用户取消" as tool result with role=tool
- Save cancellation result to conversation history
- Prevent abrupt task termination, allow graceful shutdown

Changes:
- server/socket_handlers.py: Comment out pending_task.cancel()
- server/tasks.py: Comment out entry['task'].cancel()
- server/chat_flow_tool_loop.py: Add stop flag monitoring loop

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 03:50:34 +08:00
141f6116fd perf: increase conversation search batch size
- Increase initial search batch from 100 to 5000
- Increase load more batch from 50 to 200
- Raise backend API limit from 100 to 10000
- Improve search performance for large conversation lists

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 03:32:43 +08:00
0e4f625338 feat: add task confirmation when switching conversations
- Prompt user to confirm when switching/creating conversation with active task
- Automatically stop running task after user confirmation
- Filter out events from previous conversation to prevent cross-talk
- Show toast notification after task is stopped

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 03:32:35 +08:00
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
66b846ee37 refactor: split frontend app modules 2026-03-08 00:03:14 +08:00
c067df4e1b feat: add include_domains search filter and UI display 2026-03-07 17:50:35 +08:00
877bcc2fad fix: improve api error diagnostics and raise model quotas 2026-03-06 17:02:19 +08:00
868640b479 feat: add aliyun quota fallback 2026-03-06 12:31:20 +08:00
4be61fe76e feat: unify terminal session controls 2026-03-04 23:49:10 +08:00
eb32e31cc1 feat: update image and video sending 2026-02-25 13:20:27 +08:00
8d0c187bbf fix: ignore empty text blocks in stacks 2026-02-25 13:20:15 +08:00
3f76780fff fix: avoid empty text action on stream 2026-02-25 03:18:18 +08:00
08bc08b35f feat: update model support and multimodal 2026-02-25 01:41:05 +08:00
89eeb449b5 chore: sync workspace updates 2026-02-23 01:20:41 +08:00
7472028997 feat: add skills framework and controls 2026-02-07 00:20:35 +08:00
b0941a247b fix: reduce workspace scans in host mode 2026-02-06 17:09:19 +08:00
55ef45e04d feat: add silent disable option and workspace prompt split 2026-02-03 23:11:15 +08:00
50b0dd9336 fix: wrap chat text and align header fonts 2026-02-02 18:34:07 +08:00
406e777e22 feat: improve compression and context budgeting 2026-01-31 10:30:00 +08:00
b81e14b314 feat: add video processing toast 2026-01-30 18:15:54 +08:00
bb91d22631 feat: add video send/view flow and guard model constraints 2026-01-30 17:04:33 +08:00
462b0ed6f3 feat: move model and mode pickers to header bar 2026-01-30 15:55:27 +08:00
7890926c3d fix: improve cancellation flow and api error tracing 2026-01-30 15:36:44 +08:00
453df30f45 refactor: replace file diff tools, simplify todos, disable typewriter 2026-01-29 14:20:01 +08:00
6f8c1b36cc feat: add image compression preference for uploads 2026-01-28 11:43:09 +08:00
60d27e9c1c fix: refine host mode controls and kimi-k2.5 support 2026-01-28 11:19:50 +08:00
8a7cc5d9c6 feat: support kimi-k2.5 with multimodal thinking 2026-01-28 10:34:27 +08:00
d8cffa30cc feat: add host mode quick entry 2026-01-28 10:01:04 +08:00
51f61b04d2 feat: add api admin ui and container status fix 2026-01-25 10:49:52 +08:00
d6fb59e1d8 refactor: split web_server into modular architecture
- Refactor 6000+ line web_server.py into server/ module
- Create separate modules: auth, chat, conversation, files, admin, etc.
- Keep web_server.py as backward-compatible entry point
- Add container running status field in user_container_manager
- Improve admin dashboard API with credentials and debug support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-22 09:21:53 +08:00
88dc7e02a4 feat: improve onboarding and copy ux 2026-01-19 21:02:24 +08:00
e256182304 fix: stabilize code block font to prevent jitter 2026-01-07 19:06:04 +08:00
60e63595a6 chore: sync pending changes 2026-01-05 21:48:55 +08:00
5c7cdd72c9 feat: add custom tools guide and id validation 2026-01-05 21:46:55 +08:00
cec28df931 feat: add manual balance checker for admin monitor 2026-01-05 14:10:19 +08:00
99cbea30da feat: polish admin policy UI and tool selection 2026-01-05 13:34:00 +08:00
3540fa8e4b feat: conversation review flow and token fixes 2026-01-05 00:59:35 +08:00
f9b5aa2af9 fix: reset defaults for new conversations 2026-01-03 16:46:33 +08:00
f5cf2fb7e7 fix: send full extract_webpage content to model 2026-01-03 15:03:41 +08:00
e2ba632ac8 feat: expand model support and qwen-vl ux 2026-01-03 07:01:24 +08:00
e903c99ca4 fix: refine title ribbon visuals and typing 2026-01-02 14:26:59 +08:00
d34fbe963a fix: unify collapse animation and scroll lock reset 2026-01-02 12:39:23 +08:00
95285747c0 fix: persist search results and speed init 2026-01-02 12:14:04 +08:00
9ae43e89ff fix: smooth scroll when unlocking 2026-01-01 20:17:21 +08:00
b42cb3b032 fix: allow scroll button tap when idle 2026-01-01 19:39:40 +08:00
7853830624 feat: improve vlm workflow and workspace image serving 2026-01-01 18:56:29 +08:00
8ead6ebc08 fix: avoid auto re-locking scroll after tasks 2026-01-01 17:37:55 +08:00
ce5032cef4 fix: keep scroll lock user-controlled during thinking 2026-01-01 17:35:22 +08:00
f725212988 feat: support inline image rendering via show_image and user_upload route 2026-01-01 16:41:24 +08:00
52f6135d37 fix: sync stacked more animation with container 2026-01-01 15:00:42 +08:00
eeb3db084b chore: snapshot before collapse fix 2026-01-01 14:23:39 +08:00
2a67e10e9b feat: add tool intent toggle 2026-01-01 06:20:41 +08:00
8de3b5d24a fix: prevent duplicate history animation 2026-01-01 06:15:01 +08:00
4262922694 fix: intent streaming defaults and UI stability 2026-01-01 05:48:13 +08:00
713659a644 feat: refine stacked blocks toggle and animations 2026-01-01 03:06:05 +08:00
93304bd2b8 chore: snapshot before stacked blocks demo 2026-01-01 01:09:24 +08:00
7639e0677b fix: stabilize thinking block animation and bg streaming 2025-12-31 09:27:21 +08:00
15e1f3c40f fix: allow quick menu actions and stabilize blank welcome 2025-12-30 10:47:06 +08:00
099de1e922 feat: add blank chat hero and limit quick menu actions 2025-12-30 10:32:09 +08:00
5bdbfa138e feat: auto-generate chat titles with personalization toggle 2025-12-30 09:43:53 +08:00
7b735e252f fix: keep model activity alive and switch new chats 2025-12-30 09:16:51 +08:00
385c8154ea chore: pause container polling when tab hidden 2025-12-16 22:27:19 +08:00
599f331c35 fix: harden container status polling after idle 2025-12-16 20:32:24 +08:00
760fae4920 fix: simplify folder icon handling 2025-12-16 18:01:33 +08:00
e27bc62ca7 fix: 缓存项目存储轮询并降低频率 2025-12-16 16:35:58 +08:00
fc88a22272 fix: render monitor desktop immediately on load 2025-12-16 00:39:36 +08:00
fce6fb0eb8 feat(ui): allow live switch between chat and monitor views 2025-12-15 22:44:46 +08:00
c96e99cd13 fix(ui): load folder contents in monitor and improve messages 2025-12-15 22:34:25 +08:00
3729cae4d2 chore(ui): show real tool names and speed long inputs 2025-12-15 18:24:44 +08:00
8fe06753bb fix: stabilize terminal tool timeouts 2025-12-15 15:15:03 +08:00
28383722cc fix: keep wait overlay alive for long waits 2025-12-15 00:52:32 +08:00
8c304c113f fix: guard memory empty snapshot replay 2025-12-15 00:10:00 +08:00
9750b0b8f1 fix: sync wait overlay with runtime 2025-12-14 23:28:22 +08:00
d5e6c9c077 fix: keep todo scrolling simple and visible 2025-12-14 22:07:21 +08:00
8b250c5c6b feat: redesign todo window animation and layout 2025-12-14 21:20:29 +08:00
9183e0caf0 fix: refine memory monitor scrolling and snapshots 2025-12-14 21:03:21 +08:00
8755688c8e feat: enhance virtual monitor command/python playback 2025-12-14 17:38:03 +08:00
757e1adaae fix: sync stop states with composer busy 2025-12-14 17:35:34 +08:00
55af5b52c6 fix: delay tool blocks until text fully streamed 2025-12-14 14:50:20 +08:00
6d330b1388 chore: checkpoint before tool playback change 2025-12-14 14:43:54 +08:00
053db95fee feat: virtual monitor 2025-12-14 04:22:00 +08:00
2f75c1c8bb feat: stable version before virtual monitor timing fix
Current status includes:
- Virtual monitor surface and components
- Monitor store for state management
- Tool call animations and transitions
- Liquid glass shader integration

Known issue to fix: Tool status display timing - "正在xx" appears
after tool execution completes instead of when tool call starts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-13 17:12:12 +08:00
d97955fdc1 feat: reimport liquid glass shader 2025-12-04 15:47:32 +08:00
eb7ccf1dd2 feat: restore run mode personalization 2025-12-02 19:03:33 +08:00
97da631e01 chore: refresh deep mode styling 2025-11-30 17:57:48 +08:00
2fea4a7244 refactor: remove legacy think tags 2025-11-30 15:15:35 +08:00
02ab023ad7 feat: persist behavior preferences 2025-11-30 13:11:04 +08:00
9bfc6f3903 feat: redesign personal space layout 2025-11-30 02:21:46 +08:00
93c53eed32 fix: eagerly reload conversations 2025-11-30 01:00:48 +08:00
3a7ed2e042 fix: polish streaming state and ui controls 2025-11-30 00:54:55 +08:00
87ceaad92b feat: improve ui feedback 2025-11-30 00:09:05 +08:00
09654b7d4b fix: stabilize conversation loading 2025-11-29 23:13:11 +08:00
dd32db7677 feat: persist api usage tokens 2025-11-29 17:45:32 +08:00
e42a924429 fix: stabilize streaming buffer drain 2025-11-29 17:01:28 +08:00
7e2550880d fix: refine search quota and upload flow 2025-11-27 19:36:09 +08:00
4563fad2d9 feat: enhance workspace toggle and mobile topbar 2025-11-27 18:42:08 +08:00
8655e64ed7 fix: show desktop sidebar collapse control 2025-11-27 13:34:08 +08:00
4fe0ee473a feat: improve mobile overlays and focus panel 2025-11-26 23:50:57 +08:00
4cd4232c62 Revert "feat: restyle utility panel and streaming focus"
This reverts commit 931a0488cc.
2025-11-26 20:21:49 +08:00
931a0488cc feat: restyle utility panel and streaming focus 2025-11-26 20:00:11 +08:00