Skip to content

对话:挂上聊天大纲,并修好新建对话的循环引用 - #373

Merged
nicechencs merged 4 commits into
devfrom
cursor/tw-chat-outline-cyclic-3a4f
Sep 20, 2026
Merged

nicechencs merged 4 commits into
devfrom
cursor/tw-chat-outline-cyclic-3a4f

Conversation

@nicechencs

@nicechencs nicechencs commented Sep 20, 2026

Copy link
Copy Markdown
Owner

做了什么

真窗 QA 包 TW-CHAT-PACK-b5eda8e4 里的两处产品问题,单独开到 dev(不并进测试-only #372)。

已 rebase 到最新 origin/dev370bff34,含 #372 squash-merge)。

Tip:4bd45ae3ced48414799da127c99f32aed1264271

探针(b5eda8e4,shot 07)结论:宽面板 + 大纲打开 + ≥2 条用户消息时,左侧大纲 没挂上 / 不可点,不是太细看不见。本 PR 挂的是带 tick、可跳转的真实轨道,零宽测量层不算已挂上。

P0 — 聊天大纲轨道没挂上

[data-chat-stage]、设置打开时保持量宽节点、0 不算已量到。三条门都满足时挂 tablist + 可点 tick。

P1 — 新建对话循环引用

主按钮 onClick={() => onNewChat()}#372 已有同样点击包装;本 PR 再在路径 / API / Tauri 边丢掉非字符串,避免事件对象进 JSON.stringify)。

Rebase / 冲突

验证

pnpm typecheck
pnpm exec vitest run \
  src/pages/chat/ChatOutlineRail.test.ts \
  src/pages/chat/ChatTranscript.test.ts \
  src/pages/chat/chat-outline-model.test.ts \
  src/pages/chat/chat-outline-pref.test.ts \
  src/pages/chat/chat-layout.test.ts \
  src/pages/chat/ChatSessionRail.test.ts \
  src/pages/chat/use-chat-page-sessions.test.ts \
  src/lib/open-chat-cwd.test.ts \
  src/lib/api/chat.test.ts \
  src/pages/chat/chat-outline-hover.test.ts

116 个相关用例通过。冲突解决没有改大纲 / 新建对话的产品行为,不需要因此再跑 Test-bot。

范围

产品修复 + 最小回归。不并进 #372。请勿合并(除非你要合)。

Open in Web Open in Cursor 

@nicechencs
nicechencs marked this pull request as ready for review September 20, 2026 15:57
cursoragent and others added 4 commits September 20, 2026 15:58
设置打开、对话面板够宽、至少两条用户消息时,原先在消息未齐时量宽失败后不再重绑,轨道一直不出现。改为量对话舞台宽度、量宽节点始终挂上,并补上挂载回归。

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>
@cursor
cursor Bot force-pushed the cursor/tw-chat-outline-cyclic-3a4f branch from df1a6af to 4bd45ae Compare September 20, 2026 15:59
@nicechencs
nicechencs merged commit 97b816d into dev Sep 20, 2026
4 checks passed
@nicechencs
nicechencs deleted the cursor/tw-chat-outline-cyclic-3a4f branch September 20, 2026 16:13
This was referenced Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants