Add toggle to show all sessions unscoped in `/resume` picker (bypass `cwd`/repo relevance grouping)
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Problem
The /resume (and --resume) session picker scopes/groups sessions by relevance to the current working directory (branch/repo/git-root/directory, per #3277). In practice this means a session started in a different directory can be effectively invisible in the default picker list, even though it is very recent and fully resumable directly via /resume <session-id>.
Example:
- Session
11111111-2222-3333-4444-555555555555(cwdC:\work\some-other-project, last updated same day) does not appear when running/resumefrom an unrelated cwd (C:\work). /resume 11111111-2222-3333-4444-555555555555resumes it without any issue.
This is confusing: there is no indication that sessions are being filtered/deprioritized, so a session can appear "lost" when it's actually just scoped out of view.
Proposed solution
Add an explicit way to toggle off the directory/repo-based scoping in the /resume picker, so users can reliably see all local sessions regardless of cwd when needed. For example:
- A keybinding (similar to
/for search, see #241) to toggle between "scoped" and "all sessions" view. - And/or a flag, e.g.
copilot --resume --all, to start directly in the unscoped view.
Why this matters
Relevance-based grouping is a nice default, but without an escape hatch it becomes an anti-feature: users lose confidence that /resume shows everything, and have to already know/remember a session ID to resume sessions from other directories.
Related
- #3277
- #241
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 picker 入口 /resume 和 --resume 开始,然后追踪 #3277 中描述的相关性分组,以及 #241 中提到的 picker 搜索交互。确定此次更改应使用切换开关、flag,还是两者都使用,并验证未限定范围的视图会显示所有本地会话,同时现有的限定范围视图仍保持为默认视图。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100