WIP: 实现画布 Agent 停止请求 #108

Closed
k88936 wants to merge 11 commits from editor-agent-abortable into master

11 Commits

Author SHA1 Message Date
k88936 ee4c9668be Merge remote-tracking branch 'origin/master' into editor-agent-abortable
Project CI / Repository checks (pull_request) Failing after 26s
Project CI / Frontend tests (pull_request) Failing after 48s
Project CI / Native shell tests (pull_request) Successful in 2m46s
Project CI / Backend tests (pull_request) Successful in 3m21s
# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
#	docs/【编辑器】画布Agent对话面板-2026-07-03.md
#	server-rs/crates/api-server/src/editor_agent/api.rs
#	src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.test.tsx
#	src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.tsx
#	src/components/image-editor/EditorAgentConversation/useEditorAgentConversation.test.tsx
2026-07-28 15:55:11 +08:00
k88936 0c077a876e Merge branch 'master' into editor-agent-abortable
Project CI / Repository checks (pull_request) Successful in 1m11s
Project CI / Frontend tests (pull_request) Successful in 2m7s
Project CI / Native shell tests (pull_request) Successful in 2m19s
Project CI / Backend tests (pull_request) Successful in 3m9s
# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
2026-07-23 18:53:01 +08:00
k88936 fe29e8ffef feat: split the prompt to 1.persist message 2.planning (which is abortable) to make sure user message is always persisted. 2026-07-23 18:04:46 +08:00
k88936 4d54363892 doc: update Editor Agent abort behavior and UI sync logic during HTTP stop 2026-07-23 14:46:30 +08:00
k88936 9ae0e93407 fix: prevent silent refresh from overwriting newly created conversations in EditorAgentConversation 2026-07-23 14:43:57 +08:00
k88936 d05ac49d07 Merge branch 'master' into editor-agent-abortable
Project CI / Frontend tests (pull_request) Successful in 36s
Project CI / Repository checks (pull_request) Successful in 1m38s
Project CI / Backend tests (pull_request) Successful in 3m26s
Project CI / Native shell tests (pull_request) Successful in 2m58s
2026-07-22 19:09:36 +08:00
k88936 9b7a787dc5 fix format
Project CI / Backend tests (pull_request) Failing after 9s
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 29s
Project CI / Native shell tests (pull_request) Successful in 3m19s
2026-07-22 19:07:53 +08:00
k88936 6186166229 Merge branch 'master' into editor-agent-abortable
Project CI / Repository checks (pull_request) Failing after 35s
Project CI / Frontend tests (pull_request) Successful in 27s
Project CI / Backend tests (pull_request) Successful in 3m24s
Project CI / Native shell tests (pull_request) Successful in 2m14s
# Conflicts:
#	docs/【编辑器】画布Agent对话面板-2026-07-03.md
#	src/components/image-editor/EditorAgentConversation/EditorAgentConversationPanelView.test.tsx
2026-07-22 18:09:49 +08:00
k88936 9bae10c397 记录画布 Agent HTTP 停止方案
Project CI / Repository checks (pull_request) Failing after 1m39s
Project CI / Native shell tests (pull_request) Failing after 1m26s
Project CI / Frontend tests (pull_request) Failing after 5m53s
Project CI / Backend tests (pull_request) Failing after 3h0m1s
同步普通规划停止、消息保留和会话锁释放边界

记录 isAborting 覆盖静默会话重读的最终交互
2026-07-22 17:39:21 +08:00
k88936 fe3527ff30 补充 Agent HTTP 停止链路回归
验证客户端断开会 drop Axum handler 并释放会话锁

验证 Pingora 将下游断开传播到 api-server 上游
2026-07-22 17:38:42 +08:00
k88936 98daad90c0 实现画布 Agent 请求停止交互
为每轮消息请求注入 AbortController 并停止当前 HTTP 请求

停止后在 isAborting 生命周期内静默刷新并阻止重复发送

补充 AbortError、客户端 signal 与面板状态回归测试
2026-07-22 17:37:54 +08:00