github / github/copilot-cli

Feature request:  /resume  and  /session  should support filtering by current working directory

未关闭
#4,704 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:sessions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Describe the feature or problem you'd like to solve

Currently,  /resume  and  /session  list ALL sessions across every project/directory I've ever worked in, with no way to scope the list to the current repo/cwd. This makes it hard to find the right session to resume when I have many sessions across different projects.

Proposed solution
Requested behavior:

• By default,  /resume  and  /session  should show only sessions started in (or associated with) the current working directory / repo.
• Provide a flag or toggle (e.g.  /resume --all ) to view sessions from all directories when needed.
• Same behavior for  copilot --resume  from the CLI flag.

This would make session resumption much faster and less error-prone for users who work across multiple repositories.

Example prompts or workflows

No response

Additional context

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先跟踪 /resume 和 /session 命令以及 CLI 入口点 copilot --resume,然后检查 session 如何记录或匹配其工作目录。完成标准是:默认列表只显示当前目录或仓库的 session,而显式的 all-sessions 选项在全部三个入口点中保留更广泛的视图。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。