测试:补齐 #367–#371 对话能力的单元/集成覆盖 - #372
Merged
Merged
Conversation
用户找不到左侧大纲时,三项须同时成立:偏好打开、至少两条用户消息、面板宽度 ≥720。补 shouldShowChatOutline 与 ChatOutlineRail / ChatTranscript 的显示与隐藏对照,不改产品代码。 Co-authored-by: NiceChen <nicechencs@gmail.com>
Merged
onClick 包一层再调 onNewChat,避免把点击事件当成工作目录。冒烟用 exact name 和 data-help=chat-new 对上唯一的「新建对话」,与组上的加号分开。 Co-authored-by: NiceChen <nicechencs@gmail.com>
nicechencs
marked this pull request as ready for review
September 20, 2026 15:57
cursor Bot
pushed a commit
that referenced
this pull request
Sep 20, 2026
#372 按旧实现要求一条用户消息时整段空 DOM。产品侧设置打开时要挂着量宽层,轨道仍隐藏。门槛用例改成认量宽层,不认空壳当轨道。 Co-authored-by: NiceChen <nicechencs@gmail.com>
nicechencs
added a commit
that referenced
this pull request
Sep 20, 2026
* 对话:宽面板时挂上聊天大纲轨道 设置打开、对话面板够宽、至少两条用户消息时,原先在消息未齐时量宽失败后不再重绑,轨道一直不出现。改为量对话舞台宽度、量宽节点始终挂上,并补上挂载回归。 Co-authored-by: NiceChen <nicechencs@gmail.com> * 对话:新建对话不再把点击事件写进工作目录 主按钮把点击事件当成文件夹传给创建会话,JSON.stringify 遇到循环引用后会话建不出来。点击不再传事件,路径只接受字符串或空,并补上回归。 Co-authored-by: NiceChen <nicechencs@gmail.com> * 对话:零宽空壳不算大纲已挂上 探针确认宽面板里轨道没挂上、也点不了。量宽为 0 时不再当成已量到,空测量层不能冒充轨道;回归要求出现可点的 tab 刻度。 Co-authored-by: NiceChen <nicechencs@gmail.com> * 测试:一条用户消息时保留大纲量宽层 #372 按旧实现要求一条用户消息时整段空 DOM。产品侧设置打开时要挂着量宽层,轨道仍隐藏。门槛用例改成认量宽层,不认空壳当轨道。 Co-authored-by: NiceChen <nicechencs@gmail.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.
范围
从
origin/devtipb5eda8e49a980eec7b53bb1603541940d2e38037(#371)开出,以测试覆盖为主。本轮为 CI 红灯做了两处最小修复,不进入大纲挂载 / 循环产品修复。CI 修复(
e7191848)ChatSessionRail顶栏「新建对话」改为onClick={() => onNewChat()},不再把点击事件传进onNewChat。e2e/browser/chat-overflow.spec.ts用getByRole('button', { name: '新建对话', exact: true })和[data-help="chat-new"]对上唯一主按钮,与组上「在此工作目录新建对话」加号分开。界面文案未改。大纲显示门槛
左侧大纲只有三项同时成立才显示:
这次补上的覆盖
chat-outline-model/ hover /ChatOutlineRail/ChatTranscript锚点chat-msg-*;groupByTurn只跟用户消息adjacentSessionId/ 快捷键和弦 / 单条禁用上下条 / 空列表回退标题 / 未设目录短名conversationWorkspaceKey空白目录、handoff 已在列表时保持 identitylocations[]/files[]/file:/// 无效 JSON / 嵌套深度 / 路径归一;ChatTurnEditList选中态;ChatEditPreviewPanel开关与空正文ChatPlanBar.test.ts;runtimePlanEntryTone别名;Rustextract_todo_plancwdShortName拒绝..;历史轨多组标题;未设组不加号;顶栏短名验证
非目标
dev(留给 review)