microsoft / microsoft/vscode

Chat input history leaks across sessions

Open
#332,199 0 comments 0 reactions 1 assignee Claimed by @justschen View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

## Type of issue

Bug

## Description

Chat input history navigation is shared across chat sessions. After submitting a prompt in one session, opening another session and pressing Up can recall the prompt from the previous session.

## Steps to reproduce

1. Open Chat and submit `SESSION_A_ONLY explain alpha`.
2. Start a new chat session.
3. Submit `SESSION_B_ONLY summarize beta`.
4. Focus the input and press Up more than once.

## Actual behavior

History navigation in Session B can recall the prompt submitted in Session A.

![Before: Session A prompt recalled in Session B](https://raw.githubusercontent.com/kartikmehta-msft/vscode/pr-assets/chat-history-session-scope/.github/pr-assets/chat-history-session-scope/before.png)

## Expected behavior

Input history is scoped to the active chat session. Session B should only recall prompts submitted in Session B, while returning to Session A should restore Session A history.

## Environment

Reproduced in a local Code - OSS web workbench at commit `60ef009ffa2c6c2bdc27cdf07e0656eafdd5bc9d` using a synthetic local chat participant.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.