Add toggle to show all sessions unscoped in `/resume` picker (bypass `cwd`/repo relevance grouping)
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
/resume と --resume の picker エントリポイントから開始し、#3277 で説明されている関連性によるグループ化と、#241 で参照されている picker の検索操作を追跡します。変更にトグル、フラグ、またはその両方を使用すべきか判断し、スコープなしのビューですべてのローカルセッションが表示される一方で、既存のスコープ付きビューがデフォルトのままであることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100