Skip to content

Add directory locator navigation for conversation threads#18

Open
DabengBa wants to merge 1 commit intoxintaofei:mainfrom
DabengBa:feature/session-location-clean-v2
Open

Add directory locator navigation for conversation threads#18
DabengBa wants to merge 1 commit intoxintaofei:mainfrom
DabengBa:feature/session-location-clean-v2

Conversation

@DabengBa
Copy link

  • add session locator utilities to the sidebar directory view so long conversations can jump between user turns and assistant replies
  • keep directory navigation synchronized with the active conversation tab, message highlighting, and preserved sidebar tab state
  • localize the directory locator copy across supported languages and remove the unused overlay implementation
20260316_165630_707

@xintaofei
Copy link
Owner

感谢佬的pr,看到pr我冒出一点想法,能否把消息导航放到会话里面啊,类似现在会话里面的plan显示逻辑,默认折叠起来,点击可以打开消息导航:
image

这样变动范围更可控,对布局调整也小,或者佬有没有其它想法,欢迎交流。

@DabengBa
Copy link
Author

我一开始做的overlay,参考agent plan的形式放在了会话的左侧.
但是会挡住会话内容.

这是一个1920x1080的效果
image

@xintaofei
Copy link
Owner

了解,建议:可以在右边显示一个悬浮的消息导航(层级需要低于plan的层级),当会话宽度小于界限值时隐藏,比会话消息的最大宽度还大一些时才显示。
另外可以注意一下会话的“平铺模式”,这个模式可以一次性显示多个会话窗口。

@DabengBa DabengBa force-pushed the feature/session-location-clean-v2 branch 2 times, most recently from 19a7ccb to e716aa5 Compare March 17, 2026 06:41
@DabengBa
Copy link
Author

DabengBa commented Mar 17, 2026

消息导航

增加'消息导航' overlay在'计划'下方,控制使用相同的宽度和样式思路。

  • 空间足够时,适当增加宽度来显示更多内容
image
  • 空间不足时,适当减少宽度来减少对'会话'的遮挡。
image
  • 支持'平铺'模式
image
  • 在打开右侧边栏时,适度将'会话'的位置向左移动,给'计划'和'消息导航'提供更多的空间
image

emm……没有弄那个自动隐藏,折叠状态下感觉还好。如果确实有必要,麻烦再聊聊思路。

@xintaofei
Copy link
Owner

佬,除了语言文件,会话页面的一个功能,怎么还有十多个文件改动啊,能再看下嘛,看能否控制一下边界

@DabengBa DabengBa force-pushed the feature/session-location-clean-v2 branch from e716aa5 to b4fa16a Compare March 20, 2026 05:00
@DabengBa
Copy link
Author

DabengBa commented Mar 20, 2026

我反复鞭笞过codex,它说做不到了

  • 数据构建

src/lib/session-locator.ts
src/hooks/use-session-locator-items.ts

  • 会话页展示与布局

src/components/message/message-list-view.tsx
src/components/chat/message-navigator-overlay.tsx
src/components/chat/agent-plan-overlay.tsx

  • 跳转 / 滚动 / 高亮

src/components/message/use-message-highlight.ts
src/components/message/virtualized-message-thread.tsx
src/components/message/content-parts-renderer.tsx

  • 高亮样式与可见性支撑

src/components/ai-elements/message.tsx
src/app/globals.css

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