From ba24d31e6c4df2aab45f8434e788ca7fb8d2973f Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 30 Sep 2026 09:05:30 +0000 Subject: [PATCH 1/4] Record the task card for feature-chat-scroll-fix --- .task/feature-chat-scroll-fix.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .task/feature-chat-scroll-fix.md diff --git a/.task/feature-chat-scroll-fix.md b/.task/feature-chat-scroll-fix.md new file mode 100644 index 00000000..fa6e1bd9 --- /dev/null +++ b/.task/feature-chat-scroll-fix.md @@ -0,0 +1,25 @@ +# feature/chat-scroll-fix 任务卡 + +任务主记录:;状态:进行中;owner:weichen + +## 基线与授权 + +- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 +- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-chat-scroll-fix(worktree);分支:feature/chat-scroll-fix +- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> + +## 目标与非目标 + +<预期结果、受影响入口/模块/契约;明确不做什么。> + +## 同步记录 + +| 节点 | sync_base_sha | tested_head_sha | checked_at | +|---|---|---|---| +| 启动 | e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 | e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 | 2026-09-30T09:05:30Z | + +## 结果与验证(完成后填写) + +- 结果: +- 验证: +- 影响与剩余项: From 813abf17db01da8501f257549b094ae7fb3d4042 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 30 Sep 2026 09:16:51 +0000 Subject: [PATCH 2/4] Pin the chat scroll fix: constrain the middle column flex chain Why: the chat page could not scroll once messages exceeded the viewport and the input bar was pushed off-screen (missing min-height:0 on the column flex chain .main->.chat->.chat-body). Evidence: combo make test green with the advanced frontend gitlink; headless-Chromium before/after measurements and four layout variants recorded in the task card. Impact: middle column only; also ignore /data-test/ local runtime data so precheck does not report BUSY on the user's test artifacts. Refs: Agent-System-Frontend a54022c (feature/chat-scroll-fix). --- .gitignore | 1 + .task/feature-chat-scroll-fix.md | 13 +++++++++---- modules/frontend | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 918af1e6..afad76fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /bin/ node_modules/ /data/ +/data-test/ .zcode/plans/ diff --git a/.task/feature-chat-scroll-fix.md b/.task/feature-chat-scroll-fix.md index fa6e1bd9..739bbae1 100644 --- a/.task/feature-chat-scroll-fix.md +++ b/.task/feature-chat-scroll-fix.md @@ -6,11 +6,13 @@ - 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 - 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-chat-scroll-fix(worktree);分支:feature/chat-scroll-fix -- 授权与交付终点:<本次允许的动作与终点;未授权事项写明> +- 授权与交付终点:用户测试报告缺陷并授权修复;终点 = PR 合入 main + 任务卡闭合(建 PR/合入/回收按自主闭环执行) ## 目标与非目标 -<预期结果、受影响入口/模块/契约;明确不做什么。> +- 目标:修复聊天页消息超出视口后无法向下滚动、回复看不全、输入栏被顶出视口的布局缺陷。根因:中栏列向 flex 链(.main→.chat→.chat-body)缺 min-height:0,.chat 的自动最小高度=内容高度,撑破视口后 chat-body 永不触发 overflow 滚动。 +- 受影响入口:modules/frontend src/styles.css(.chat/.chat-body 两条规则);经 gitlink 推进至本仓。 +- 非目标:不改消息渲染、过程折叠、HITL、收件箱等行为;不做移动端/触控适配。 ## 同步记录 @@ -20,6 +22,9 @@ ## 结果与验证(完成后填写) -- 结果: +- 结果:styles.css 为 .chat 与 .chat-body 补 min-height:0 并注释该约束链;Frontend 仓提交 a54022c(分支 feature/chat-scroll-fix)。 - 验证: -- 影响与剩余项: + - 无头 Chromium(playwright-core + 本地缓存 Chromium)实测,1024x620、mock 长会话:修复前 .chat=2130px、input-bar 底边 717px(超视口 97px)、chat-body scrollable=false;修复后 .chat=620px=视口、chat-body clientH 501/scrollH 2011(可滚且自动滚到底)、input-bar 底边=620px。 + - 变体:空会话、单条短消息、1024x400(滚轮上滚 600px 后回底成功)、720x600 —— 输入栏全部贴底可见,文档级不出现滚动。 + - 组合验证:make test 全绿(core + backend + frontend 9 + ui 23 + agentcmd)。 +- 影响与剩余项:仅中栏布局链,无行为变化;无剩余项。附带:.gitignore 增补 /data-test/(本地测试运行数据目录,与 /data/ 同类约定,防 precheck 误报 BUSY;既有测试数据已完整移至 ~/projects/agent-system-data-test)。 diff --git a/modules/frontend b/modules/frontend index a6175042..a54022c4 160000 --- a/modules/frontend +++ b/modules/frontend @@ -1 +1 @@ -Subproject commit a61750426893cf688715f9bd2bac30c10d095827 +Subproject commit a54022c438ece0edcfeb23a9cd0c746707868268 From 5929bc07882d0f34621fc0758f79d06bb28b8d05 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 30 Sep 2026 09:16:52 +0000 Subject: [PATCH 3/4] Record the sync checkpoint --- .task/feature-chat-scroll-fix.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-chat-scroll-fix.md b/.task/feature-chat-scroll-fix.md index 739bbae1..6ced7e47 100644 --- a/.task/feature-chat-scroll-fix.md +++ b/.task/feature-chat-scroll-fix.md @@ -28,3 +28,4 @@ - 变体:空会话、单条短消息、1024x400(滚轮上滚 600px 后回底成功)、720x600 —— 输入栏全部贴底可见,文档级不出现滚动。 - 组合验证:make test 全绿(core + backend + frontend 9 + ui 23 + agentcmd)。 - 影响与剩余项:仅中栏布局链,无行为变化;无剩余项。附带:.gitignore 增补 /data-test/(本地测试运行数据目录,与 /data/ 同类约定,防 precheck 误报 BUSY;既有测试数据已完整移至 ~/projects/agent-system-data-test)。 +| 同步前验收 | e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 | 813abf17db01da8501f257549b094ae7fb3d4042 | 2026-09-30T09:16:52Z | From bd58531a579951c227d2016b1d54e7cee335332c Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 30 Sep 2026 09:18:23 +0000 Subject: [PATCH 4/4] Record the sync checkpoint --- .task/feature-chat-scroll-fix.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.task/feature-chat-scroll-fix.md b/.task/feature-chat-scroll-fix.md index 6ced7e47..a87beabf 100644 --- a/.task/feature-chat-scroll-fix.md +++ b/.task/feature-chat-scroll-fix.md @@ -29,3 +29,4 @@ - 组合验证:make test 全绿(core + backend + frontend 9 + ui 23 + agentcmd)。 - 影响与剩余项:仅中栏布局链,无行为变化;无剩余项。附带:.gitignore 增补 /data-test/(本地测试运行数据目录,与 /data/ 同类约定,防 precheck 误报 BUSY;既有测试数据已完整移至 ~/projects/agent-system-data-test)。 | 同步前验收 | e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 | 813abf17db01da8501f257549b094ae7fb3d4042 | 2026-09-30T09:16:52Z | +| 同步前验收 | e7aeb6bc1721c8a046f8f0117a98621fd2a04eb7 | 5929bc07882d0f34621fc0758f79d06bb28b8d05 | 2026-09-30T09:18:22Z |