github / github/copilot-cli

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

Open
#4,704 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area:sessions
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the /resume and /session commands and the copilot --resume CLI entry point, then inspect how sessions record or match their working directory. Done means the default lists only sessions for the current directory or repo, while an explicit all-sessions option preserves the broader view across all three entry points.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.