From 087b328d48bb9124a6487e47fc536ace683a17df Mon Sep 17 00:00:00 2001 From: weichen Date: Fri, 2 Oct 2026 02:03:12 +0000 Subject: [PATCH 1/5] Record the task card for feature-stream-display-overhaul --- .task/feature-stream-display-overhaul.md | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .task/feature-stream-display-overhaul.md diff --git a/.task/feature-stream-display-overhaul.md b/.task/feature-stream-display-overhaul.md new file mode 100644 index 00000000..a080e6dc --- /dev/null +++ b/.task/feature-stream-display-overhaul.md @@ -0,0 +1,25 @@ +# feature/stream-display-overhaul 任务卡 + +任务主记录:;状态:进行中;owner:weichen + +## 基线与授权 + +- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 08ef71661d4d65d13471978185a7afb4636b3f34 +- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-stream-display-overhaul(worktree);分支:feature/stream-display-overhaul +- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> + +## 目标与非目标 + +<预期结果、受影响入口/模块/契约;明确不做什么。> + +## 同步记录 + +| 节点 | sync_base_sha | tested_head_sha | checked_at | +|---|---|---|---| +| 启动 | 08ef71661d4d65d13471978185a7afb4636b3f34 | 08ef71661d4d65d13471978185a7afb4636b3f34 | 2026-10-02T02:03:12Z | + +## 结果与验证(完成后填写) + +- 结果: +- 验证: +- 影响与剩余项: From 83881c13206d97a8b5ee69cd465c621a337a70fb Mon Sep 17 00:00:00 2001 From: weichen Date: Fri, 2 Oct 2026 02:36:10 +0000 Subject: [PATCH 2/5] Pin streaming display changes across the five modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why: Tool calls stayed invisible while arguments streamed, and a failed run hid the only reply inside the collapsed process block. Evidence: make test in the worktree passed: boundaries, core, backend, frontend vitest 66, ui vitest 79, agent-command. Mock browser check showed the Chinese process summary, the reply outside the fold, a humanized error with 继续执行, and the back-to-bottom button. Impact: Dev gitlinks move to the feature commits for core, agent-native, backend, ui, and frontend. DESIGN.md §9.6 describes individual tool blocks for exec, write, and delegate. Refs: feature/stream-display-overhaul Co-authored-by: Cursor --- .task/feature-stream-display-overhaul.md | 9 +++++---- DESIGN.md | 11 +++++++---- deps/agent-native | 2 +- modules/backend | 2 +- modules/core | 2 +- modules/frontend | 2 +- modules/ui | 2 +- 7 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.task/feature-stream-display-overhaul.md b/.task/feature-stream-display-overhaul.md index a080e6dc..ae00fa6d 100644 --- a/.task/feature-stream-display-overhaul.md +++ b/.task/feature-stream-display-overhaul.md @@ -10,7 +10,8 @@ ## 目标与非目标 -<预期结果、受影响入口/模块/契约;明确不做什么。> +- 目标:工具从开始编写参数起就可见;过程与最终回复分区,最终回复不被折进「已工作」;取消轮次、工具次数、输出长度、小队超时和执行超时硬上限。 +- 非目标:不改回传给模型的工具结果截断、上下文裁剪、重复调用提醒和日 token 预算。 ## 同步记录 @@ -20,6 +21,6 @@ ## 结果与验证(完成后填写) -- 结果: -- 验证: -- 影响与剩余项: +- 结果:新增 tool.call.delta / tool.output,tool.result 带 durationMs。前端工具条目走编写中、运行中、完成。失败或无终轮正文时把最后一段解说提到回复区。同轮错误并入该条助手消息,同名交付物只留最新一张。默认画像、子代理、小队和执行工具不再设硬上限。 +- 验证:worktree 内 make test 通过(boundaries、core、backend、frontend vitest 66、ui vitest 79、agent-command)。浏览器 mock:过程块收成「已工作 1 秒 · 1 次工具调用」,回复留在外面;展开可见「思考」「搜索 · 1 次」;#error 显示「已停止」和「继续执行」;上翻后出现「回到底部」。真实模型超长 run_python 未在本机复现。 +- 影响与剩余项:Anthropic 未配置 max_tokens 时仍须传 128000(协议要求)。小队 StepTimeout 用 -1 表示不限。合入顺序:Core、Agent-Native,然后 Backend、UI、Frontend,最后 Dev gitlink。 diff --git a/DESIGN.md b/DESIGN.md index 231785f7..11045b46 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -190,10 +190,13 @@ Primary(`--primary` 反色)、Ghost(透明,hover 出表面)、Danger 助手消息在运行中按时间线逐行展开,终轮结束后折成一行。 -- 运行中始终展开:思考行显示「思考中」并带 `mk-sweep`;对用户的解说按正文样式直接显示; - 同类工具合并成一行(查阅、搜索、已运行命令、写入、卡片、委派、计划)。 -- 终轮(没有后续工具调用)结束后,过程段收进 Collapsible,触发行为「已工作 X 分 Y 秒」。 - 最终回复留在折叠行下面。不在每一轮 `responding` 时来回折叠。 +- 运行中过程块展开,块头是中文阶段(思考中、正在编写、正在运行并计时、回复中),带 `mk-sweep`。 + 对用户的解说按正文样式直接显示。查阅和搜索合并成一行;执行、写入、委派每次一条 ToolBlock: + 编写参数时显示「编写中」和脚本尾部,运行时显示计时和输出尾部,结束后可展开看完整参数与结果。 +- 终轮结束后,过程段收进 Collapsible,触发行为「已工作 X 分 Y 秒 · N 次工具调用 · N 个文件」。 + 用户在运行中手动折过的,结束后沿用这次选择。最终回复(终轮正文、交付物、错误)留在折叠行下面; + 若这次没有终轮正文,把最后一段解说提到折叠行下面,不把回复藏进过程里。 + 不在每一轮 `responding` 时来回折叠。同一轮同名工件只留最新一张,并注明更新次数。 - 文件卡片:图标、名称、「类型 · 大小」、右侧「预览」。正文里的 `art_` 编号若对得上工件,在正文后补一张卡片; 对不上则显示「未找到该文件」,不伪装成可打开的文件。 - 标签条用 `@ui` `TabStrip`:点击激活、× 关闭、中键关闭,溢出横向滚动。只消费令牌与 `mk-*`。 diff --git a/deps/agent-native b/deps/agent-native index a34689c7..c6d867cd 160000 --- a/deps/agent-native +++ b/deps/agent-native @@ -1 +1 @@ -Subproject commit a34689c78fbddbfa34b343cd6f85cca36c4d2f9d +Subproject commit c6d867cde7d87696feaf3073f097ca15b0145273 diff --git a/modules/backend b/modules/backend index bc05bb27..cd74434b 160000 --- a/modules/backend +++ b/modules/backend @@ -1 +1 @@ -Subproject commit bc05bb27718c95b8aa6af1395ff81d7bdcb41f06 +Subproject commit cd74434b4f0f1226042e261737e7ca21ca0807ca diff --git a/modules/core b/modules/core index 4d1123e4..f08a4a90 160000 --- a/modules/core +++ b/modules/core @@ -1 +1 @@ -Subproject commit 4d1123e45c7d90790ee72f1865a8ccec3f4b5546 +Subproject commit f08a4a90c63525401671231e262fd6c45e9c1bff diff --git a/modules/frontend b/modules/frontend index bca77952..eca1665d 160000 --- a/modules/frontend +++ b/modules/frontend @@ -1 +1 @@ -Subproject commit bca779521885ed1b19b632d878cd042dc0a7a9e5 +Subproject commit eca1665d9157d14461518fb2cf5a7d8d6fb5a489 diff --git a/modules/ui b/modules/ui index cc632828..d0e82805 160000 --- a/modules/ui +++ b/modules/ui @@ -1 +1 @@ -Subproject commit cc6328282ef542f7f3e83a077bbcf1a11de6afad +Subproject commit d0e828051b73638138ba39adc052c160d18a69b3 From 42fe314b88d54a9b54bb4696d101f3a23989ae7b Mon Sep 17 00:00:00 2001 From: weichen Date: Fri, 2 Oct 2026 02:36:24 +0000 Subject: [PATCH 3/5] Record the sync checkpoint --- .task/feature-agent-professional-deliverables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-agent-professional-deliverables.md b/.task/feature-agent-professional-deliverables.md index cff3bfec..f421bd91 100644 --- a/.task/feature-agent-professional-deliverables.md +++ b/.task/feature-agent-professional-deliverables.md @@ -30,3 +30,4 @@ | 同步前验收 | 6f7f4a0e7858c70261d7bbeb179f5eb59303f956 | f41ad95b1c5c9d2c415a12a64ac1f1551cd7b6af | 2026-10-01T08:20:22Z | | 同步前验收 | 959179f88fafa06daeab121929112069d34e8419 | 6705d521f441b7bb558f6cd9c082f445cac192c3 | 2026-10-01T23:33:48Z | | 同步前验收 | 959179f88fafa06daeab121929112069d34e8419 | 0f3ea6c8b545923a7dfaf46d938f682f0c879246 | 2026-10-01T23:48:16Z | +| 同步前验收 | 08ef71661d4d65d13471978185a7afb4636b3f34 | 83881c13206d97a8b5ee69cd465c621a337a70fb | 2026-10-02T02:36:24Z | From f43aec709d5e72dffd421fe157545507bd7d425e Mon Sep 17 00:00:00 2001 From: weichen Date: Fri, 2 Oct 2026 02:38:16 +0000 Subject: [PATCH 4/5] Record the streaming display pull request on the task card Why: The task card is the review record, and it still pointed at a placeholder after the pull request existed. Evidence: Dev pull request 147 is open. Impact: The card status stays in progress until merge. Refs: feature/stream-display-overhaul Co-authored-by: Cursor --- .task/feature-stream-display-overhaul.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.task/feature-stream-display-overhaul.md b/.task/feature-stream-display-overhaul.md index ae00fa6d..aecedcc7 100644 --- a/.task/feature-stream-display-overhaul.md +++ b/.task/feature-stream-display-overhaul.md @@ -1,6 +1,6 @@ # feature/stream-display-overhaul 任务卡 -任务主记录:;状态:进行中;owner:weichen +任务主记录:https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/147 ;状态:进行中;owner:weichen ## 基线与授权 From 20b5fd01a387df4608265d8b4e421156305a6698 Mon Sep 17 00:00:00 2001 From: weichen Date: Fri, 2 Oct 2026 05:03:41 +0000 Subject: [PATCH 5/5] Record the sync checkpoint --- .task/feature-agent-professional-deliverables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-agent-professional-deliverables.md b/.task/feature-agent-professional-deliverables.md index f421bd91..6b91f686 100644 --- a/.task/feature-agent-professional-deliverables.md +++ b/.task/feature-agent-professional-deliverables.md @@ -31,3 +31,4 @@ | 同步前验收 | 959179f88fafa06daeab121929112069d34e8419 | 6705d521f441b7bb558f6cd9c082f445cac192c3 | 2026-10-01T23:33:48Z | | 同步前验收 | 959179f88fafa06daeab121929112069d34e8419 | 0f3ea6c8b545923a7dfaf46d938f682f0c879246 | 2026-10-01T23:48:16Z | | 同步前验收 | 08ef71661d4d65d13471978185a7afb4636b3f34 | 83881c13206d97a8b5ee69cd465c621a337a70fb | 2026-10-02T02:36:24Z | +| 同步前验收 | 08ef71661d4d65d13471978185a7afb4636b3f34 | f43aec709d5e72dffd421fe157545507bd7d425e | 2026-10-02T05:03:41Z |