github / github/copilot-cli

When resuming an old session the agent used in that old session is not selected

Open
#4,489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

I was in a session where I started with a specific agent (i.e. /agent x). I then resumed that session the next day and I had to select the agent again manually.

This is kind of hard to see if you don't pay close enough attention to it.

I'm also a bit unsure how big the impact is since the agent would already be in the history.

Affected version

1.0.80

Steps to reproduce the behavior
  1. create a session
  2. select agent /agent x (agent name should show up in the bottom bar)
  3. use the session
  4. /clear
  5. /resume the old session
  6. agent name is not shown in the bottom bar
Expected behavior

Agent that was using in the the resumed session should again be selected automatically.

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 reproducing the issue in the Copilot CLI with /agent, /clear, and /resume as described. Trace how resumed sessions restore their state and how the selected agent is shown in the bottom bar. Done means resuming the session automatically selects and displays the agent that was active when the session was saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.