对话:本轮改过的文件可预览 - #367
Merged
Merged
对话:本轮改过的文件可预览#367
Conversation
nicechencs
added a commit
that referenced
this pull request
Sep 20, 2026
* 测试:补齐对话大纲、顶栏切换、计划条与改过文件的覆盖 为 #367–#371 及邻近对话能力补 Vitest 与 Rust 单元测试:大纲跳到发出的消息、顶栏切换会话、历史按工作目录分组、改过文件预览、思考/工具分栏、计划条、工作区显示。不改产品行为。 Co-authored-by: NiceChen <nicechencs@gmail.com> * 测试:锁死大纲显示门槛(设置、两条发出的消息、720px) 用户找不到左侧大纲时,三项须同时成立:偏好打开、至少两条用户消息、面板宽度 ≥720。补 shouldShowChatOutline 与 ChatOutlineRail / ChatTranscript 的显示与隐藏对照,不改产品代码。 Co-authored-by: NiceChen <nicechencs@gmail.com> * 修复:顶栏新建对话的类型与冒烟选择器 onClick 包一层再调 onNewChat,避免把点击事件当成工作目录。冒烟用 exact name 和 data-help=chat-new 对上唯一的「新建对话」,与组上的加号分开。 Co-authored-by: NiceChen <nicechencs@gmail.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This was referenced Sep 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
行为变化
本轮过程步骤里「正在修改 / 已修改」的文件会列出来。点「查看修改」打开预览:有新旧文本时画简单 diff,否则预览当前文件。沿用已有读文件接口,没有新增 git / PR 能力。
影响范围
src/pages/chat/chat-edit-preview.ts、ChatEditPreviewPanel.tsxsrc/pages/chat/chat-preview-model.ts、index.tsx不改正文过程面板实现、会话分组、顶栏切换。
验证
未跑全量
pnpm test/pnpm build。CI 会跑 PR 矩阵。文档
未改
docs/。合入注意
index.tsx与feat/chat-session-switch都会改,建议错开合入。