Pin the live run visibility fix
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 <cursoragent@cursor.com>
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
# fix/live-run-visibility 任务卡
|
||||
|
||||
任务主记录:<PR 链接,task-finish 时填写>;状态:进行中;owner:weichen
|
||||
任务主记录:<PR 链接,建 PR 后回填>;状态:进行中;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 重新部署留给所有者。
|
||||
|
||||
+1
-1
Submodule modules/backend updated: 44aa764b56...51b1ff6923
+1
-1
Submodule modules/frontend updated: 763c4b4804...e4ca2acfa6
Reference in New Issue
Block a user