From 0e4e05364be40923a2bf3e2718dff773252203a4 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 15:21:59 +0000 Subject: [PATCH] Pin the live run visibility fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why: Sending a message left the composer on 发送 and hid the live process, because the user message now carries the run id and a refresh had no cursor to replay an open run. Evidence: make test passed in the worktree. A mock server showed the stop and queue buttons within 250ms, the reply growing before it settled, and the in-progress turn restored after switching away and after reload. Impact: Frontend and backend gitlinks only, plus this task card. No core contract change. Refs: Frontend fix/live-run-visibility, Backend fix/live-run-visibility Co-authored-by: Cursor --- .task/fix-live-run-visibility.md | 13 +++++++------ modules/backend | 2 +- modules/frontend | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.task/fix-live-run-visibility.md b/.task/fix-live-run-visibility.md index 7bf7ffa3..cc4b446c 100644 --- a/.task/fix-live-run-visibility.md +++ b/.task/fix-live-run-visibility.md @@ -1,16 +1,17 @@ # fix/live-run-visibility 任务卡 -任务主记录:;状态:进行中;owner:weichen +任务主记录:;状态:进行中;owner:weichen ## 基线与授权 - 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 3f09409a7ddaa9029631cf215584475dfb69452b - 工作区:/home/weichen/projects/Agent-System-Dev-wt-fix-live-run-visibility(worktree);分支:fix/live-run-visibility -- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> +- 授权与交付终点:修复发送后无运行态、过程不流式显示。改前端与后端会话详情。合入由所有者执行。不回退用户消息上的 runId,不改 Core 契约,不处理流式阶段的内联 think 标签。 ## 目标与非目标 -<预期结果、受影响入口/模块/契约;明确不做什么。> +- 目标:发送返回后立刻显示停止/排队,运行中的过程逐段出现。切回或刷新正在运行的会话时,从该 run 的第一条事件重放已产生的过程。 +- 非目标:不撤销用户消息的 runId。不改 Core 契约。不处理流式阶段内联 think 标签的显示。 ## 同步记录 @@ -20,6 +21,6 @@ ## 结果与验证(完成后填写) -- 结果: -- 验证: -- 影响与剩余项: +- 结果:Frontend `fix/live-run-visibility` @ e4ca2ac。Backend `fix/live-run-visibility` @ 51b1ff6。会话详情增加 `resumeSeq`(进行中的 run 为其首个事件 seq − 1,否则等于 `lastSeq`)。 +- 验证:worktree `make test` 通过(frontend vitest 75,ui vitest 79,backend `go test ./...`)。mock 实例 `127.0.0.1:8799`:发送后 250ms 内按钮变为停止/排队,回复长度从 105 增到 265 后才落定;`#hitl` 切走再切回、刷新后点回会话,按钮仍是停止/排队,实时行显示「已工作 1 分 19 秒」,确认卡仍在。 +- 影响与剩余项:旧客户端忽略 `resumeSeq` 时行为与现在相同。合入与 dev 重新部署留给所有者。 diff --git a/modules/backend b/modules/backend index 44aa764b..51b1ff69 160000 --- a/modules/backend +++ b/modules/backend @@ -1 +1 @@ -Subproject commit 44aa764b5625a8d8ac7486dd1e782cdb9930da55 +Subproject commit 51b1ff6923feba45823c36190755fd28561563e3 diff --git a/modules/frontend b/modules/frontend index 763c4b48..e4ca2acf 160000 --- a/modules/frontend +++ b/modules/frontend @@ -1 +1 @@ -Subproject commit 763c4b4804d90041607254bb3fef44306fb7f671 +Subproject commit e4ca2acfa69bd6bde809c6b27813f9250fb91f19