orphaned agent window session created when marked done too early

Open
#321,469 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the issue by sending a message in a new agent window session and immediately selecting “mark done,” then inspect the resulting history entry and session transitions. Trace the agent window and session lifecycle from the relevant entry points; done means the session opens normally from history and can be closed after being marked done.

Written by the indexing model from the issue text.

Description

  1. send a message in the agent window on a new session
  2. click 'mark done' right away
  3. eventually a session shows up in the history, try to click on it

🐛 nothing happens

  1. click to a different session, then the blank one
  2. mark the session done to get rid of it

🐛 session doesn't close

https://github.com/user-attachments/assets/5dbf9f6a-1722-42a0-89ac-1bae8079a22d

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

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.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.