Skip to content

feat(buddy): collapse long conversation lists - #224

Closed
QAyong wants to merge 2 commits into
useLexora:masterfrom
QAyong:codex/pr-session-list-collapse
Closed

QAyong wants to merge 2 commits into
useLexora:masterfrom
QAyong:codex/pr-session-list-collapse

Conversation

@QAyong

@QAyong QAyong commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Show the first five conversations in each sidebar group, with a control to reveal the rest.
  • Keep expanded groups independent and reset expansion when their parent section closes.

Demo

Session list collapse preview

Verification

  • git diff --check passed.
  • Buddy type-check could not run because dependencies are not installed in this worktree (vue-tsc unavailable).

侧栏会话较多时列表会把「置顶 / 空间 / 任务」挤变形,需要在默认状态下收敛长度。

- 每个分组(任务分组、每个空间)默认只渲染 5 条会话;超出时在列表末尾追加一条「展开其余 N 个」行,点击后该分组全部展开
- 不提供收起按钮,改由三个时机自动收回:展开另一个分组(手风琴,同时只允许一个分组展开)、折叠该分组本身、离开任务页或重启应用
- 展开状态只存在内存中,不写入配置(不持久化)
- 投影层新增 expand 行类型与 conversationLimit / expandedConversationGroups 入参;globalTasks(原始任务数组)改为 taskRows(含合成展开行的行数组)
- 新增 DesktopTaskSidebarExpandRow 组件,与任务行同高同内边距,空间内的会话缩进对齐
- 新增 i18n:desktop.tasks.expandRemaining(中/英)
- 投影测试新增 4 例:任务分组截断与计数、展开后全显示、空间独立截断、不足 5 条时不出现展开行
@shanyuhai123

shanyuhai123 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

这个提交暂时不会合并,后续会在这上面调整。

之前设计的时候是允许一个工作目录对应多个空间的。
而且折叠并没有解决问题,交互谈不上很友好,可能还需要考虑一下(不是很认可 codex 那种交互,期望有能更自然的选择):

image

@QAyong QAyong closed this Sep 29, 2026
@QAyong
QAyong deleted the codex/pr-session-list-collapse branch September 29, 2026 15:20
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