[FEATURE]:添加目录导航功能,参考 Cherry Studio 的三栏布局 #9319

Open
opened 2026-02-16 18:12:10 -05:00 by yindo · 2 comments
Owner

Originally created by @Kinda2419 on GitHub (Feb 14, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

功能请求:对话目录导航面板(参考 Cherry Studio 布局)

问题描述

当与 OpenCode 进行长对话时,浏览历史消息变得非常困难:

  1. 滚动困难:需要不断滚动才能查看之前的对话内容
  2. 定位困难:难以快速跳转到特定的用户输入或 AI 回复
  3. 长内容导航:当 OpenCode 输出很长的内容时,无法快速定位到感兴趣的章节

建议的解决方案

参考 Cherry Studio 的三栏布局设计,添加目录导航功能

布局设计

┌──────────┬──────────────────────┬──────────────┐
│          │                      │   当前对话   │
│   会话   │     对话内容区       │   大纲目录   │
│   列表   │     (中间主区域)   │  (右侧)    │
│  (已有)  │                      │              │
│          │                      │ • 用户问题1  │
│          │                      │   ├ 章节A    │
│          │                      │   └ 章节B    │
│          │                      │ • 用户问题2  │
│          │                      │ • AI回复2    │
│          │                      │   ├ 步骤1    │
│          │                      │   └ 步骤2    │
│          │                      │              │
└──────────┴──────────────────────┴──────────────┘

具体功能

1. 右侧目录面板(新增)

  • 显示当前对话的完整结构
  • 用户输入条目:列出所有用户提问,点击跳转
  • AI 回复条目:展开显示内部章节/子标题
  • 章节锚点:长内容自动生成可跳转的目录

2. 中间对话区(现有)

  • 保持现有的对话展示
  • 点击右侧目录时自动滚动到对应位置

3. 左侧会话列表(现有)

  • 保持不变
  • 可选:添加"最近查看"标记

参考实现

Cherry Studio 已实现类似功能,效果如下:

  • 右侧大纲自动提取对话结构
  • 支持一键跳转到任意位置
  • 大幅提升长对话浏览效率

开源参考:https://github.com/CherryHQ/cherry-studio

使用场景

  1. 回顾历史对话:快速查看之前的所有提问和回答
  2. 长内容导航:AI 输出长代码/文档时,快速跳转到特定章节
  3. 多轮对话管理:清楚看到对话的整体结构,避免迷失

优先级

建议优先级:
理由:这是高频痛点,参考 Cherry Studio 的成功经验,能显著提升用户体验。


感谢开发团队的辛勤工作!期待这个功能能让 OpenCode 变得更好用!



Originally created by @Kinda2419 on GitHub (Feb 14, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## 功能请求:对话目录导航面板(参考 Cherry Studio 布局) ### 问题描述 当与 OpenCode 进行长对话时,浏览历史消息变得非常困难: 1. **滚动困难**:需要不断滚动才能查看之前的对话内容 2. **定位困难**:难以快速跳转到特定的用户输入或 AI 回复 3. **长内容导航**:当 OpenCode 输出很长的内容时,无法快速定位到感兴趣的章节 ### 建议的解决方案 参考 **Cherry Studio** 的三栏布局设计,添加**目录导航功能**: #### 布局设计 ``` ┌──────────┬──────────────────────┬──────────────┐ │ │ │ 当前对话 │ │ 会话 │ 对话内容区 │ 大纲目录 │ │ 列表 │ (中间主区域) │ (右侧) │ │ (已有) │ │ │ │ │ │ • 用户问题1 │ │ │ │ ├ 章节A │ │ │ │ └ 章节B │ │ │ │ • 用户问题2 │ │ │ │ • AI回复2 │ │ │ │ ├ 步骤1 │ │ │ │ └ 步骤2 │ │ │ │ │ └──────────┴──────────────────────┴──────────────┘ ``` #### 具体功能 **1. 右侧目录面板(新增)** - 显示当前对话的完整结构 - **用户输入条目**:列出所有用户提问,点击跳转 - **AI 回复条目**:展开显示内部章节/子标题 - **章节锚点**:长内容自动生成可跳转的目录 **2. 中间对话区(现有)** - 保持现有的对话展示 - 点击右侧目录时自动滚动到对应位置 **3. 左侧会话列表(现有)** - 保持不变 - 可选:添加"最近查看"标记 ### 参考实现 **Cherry Studio** 已实现类似功能,效果如下: - 右侧大纲自动提取对话结构 - 支持一键跳转到任意位置 - 大幅提升长对话浏览效率 开源参考:https://github.com/CherryHQ/cherry-studio ### 使用场景 1. **回顾历史对话**:快速查看之前的所有提问和回答 2. **长内容导航**:AI 输出长代码/文档时,快速跳转到特定章节 3. **多轮对话管理**:清楚看到对话的整体结构,避免迷失 ### 优先级 建议优先级:**高** 理由:这是高频痛点,参考 Cherry Studio 的成功经验,能显著提升用户体验。 --- **感谢开发团队的辛勤工作!期待这个功能能让 OpenCode 变得更好用!** ```
yindo added the discussionweb labels 2026-02-16 18:12:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

This issue might be related to existing feature requests for conversation navigation. Please check:

  • #9794: Add 'Jump to Answer Start' Button - helps navigate within long AI responses
  • #3337: Navigation Shortcut to Jump Between User Messages - jump between user messages
  • #11819: Search messages history tool - search through conversation history
  • #10570: Scrollbars and message preview (Chinese) - related UI navigation needs

Your outline/table of contents approach is a more comprehensive solution that could complement or supersede these more targeted requests.

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue might be related to existing feature requests for conversation navigation. Please check: - #9794: Add 'Jump to Answer Start' Button - helps navigate within long AI responses - #3337: Navigation Shortcut to Jump Between User Messages - jump between user messages - #11819: Search messages history tool - search through conversation history - #10570: Scrollbars and message preview (Chinese) - related UI navigation needs Your outline/table of contents approach is a more comprehensive solution that could complement or supersede these more targeted requests.
Author
Owner

@Kinda2419 commented on GitHub (Feb 14, 2026):

此问题可能与已有的对话导航功能请求有关。请检查:

您的提纲/目录方法是一种更全面的解决方案,可以补充或取代这些更有针对性的要求。

这个建议被采纳了吗?我想知道你们的更新计划,因为我最近在高频地使用,很需要我提到的这个功能

@Kinda2419 commented on GitHub (Feb 14, 2026): > 此问题可能与已有的对话导航功能请求有关。请检查: > > * [[FEATURE]: Add 'Jump to Answer Start' Button #9794](https://github.com/anomalyco/opencode/issues/9794) :添加“跳转到答案开头”按钮 - 帮助用户在较长的 AI 回答中导航 > * [Feature Request: Navigation Shortcut to Jump Between User Messages #3337](https://github.com/anomalyco/opencode/issues/3337) :导航快捷方式,用于在用户消息之间跳转 - 在用户消息之间跳转 > * [[FEATURE]: Search mesages history tool. #11819](https://github.com/anomalyco/opencode/issues/11819) :搜索消息历史记录工具 - 搜索对话历史记录 > * [建议增加滚动条和指令预览 #10570](https://github.com/anomalyco/opencode/issues/10570) :滚动条和消息预览(中文)——相关的用户界面导航需求 > > 您的提纲/目录方法是一种更全面的解决方案,可以补充或取代这些更有针对性的要求。 这个建议被采纳了吗?我想知道你们的更新计划,因为我最近在高频地使用,很需要我提到的这个功能
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9319