Chat: Unsent (draft) input should not surface when navigating back to the session list

Open
#319,074 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
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Reproduce the issue in the Chat UI by entering unsent text, navigating back to the session list, and re-entering the session. Trace the session-list navigation and chat input state to identify where the draft becomes visible; done means the draft is hidden at the list level and restored unchanged in its original session.

Written by the indexing model from the issue text.

Description

Describe the behavior you'd like:

When I have unsent/draft text in a chat session's input box and navigate "back" to the session list (the panel that lists all chat sessions), the draft text should remain scoped to that session — it should not appear or carry over at the session-list level.

When I re-enter that specific session, the draft text should be restored as expected.

Current behavior:

Navigating back to the session list exposes or interacts with the unsent input in a way that feels like the draft is "leaking" out of its session context.

Expected behavior:

Draft input is strictly scoped to its session
Navigating up to the session list: draft is hidden / not surfaced
Re-entering the session: draft is restored exactly as left
Why this matters:

When managing multiple chat sessions, navigating between them or starting a new session from the list should be a clean action. Unsent content from a previous session creates confusion about which session's context is active.

Environment:

VS Code version: (fill in)
OS: macOS
Extension: GitHub Copilot Chat

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.