Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

When invoking "Fix with Copilot" or "Summarize with Copilot" on multiple issues, all suggestions were appended to the same chat session, making navigation difficult as the conversation grew.

Changes

  • Replace chatCommand() (which returns QUICK_CHAT_OPEN or OPEN_CHAT) with commands.NEW_CHAT in both issue.chatSuggestFix and issue.chatSummarizeIssue commands
  • Pass prompt as { inputValue: prompt } parameter instead of bare string to pre-populate the new session
  • Remove unused chatCommand import

Example

// Before: Reuses existing chat session
commands.executeCommand(chatCommandID, vscode.l10n.t('@githubpr Find a fix for issue {0}/{1}#{2}', ...));

// After: Creates new chat session each time
commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('@githubpr Find a fix for issue {0}/{1}#{2}', ...) });

Each invocation now starts a fresh chat session, keeping unrelated issue discussions separate.

Original prompt

This section details on the original issue you should resolve

<issue_title>Use a new quick chat for each request</issue_title>
<issue_description>Testing #6321

  • select an issue and invoke 'Fix with Copilot'. Quick chat opens and proposes something
  • select a different issue and invoke 'Fix with Copilot'. Quick chat adds that suggestion under the previous conversation.

As the two entries are not related to each other, I would prefer a new chat. With each request, the quick chat gets larger and difficult to navigate</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 10, 2025 11:39
- Updated issue.chatSuggestFix to use commands.NEW_CHAT instead of chatCommand()
- Updated issue.chatSummarizeIssue to use commands.NEW_CHAT instead of chatCommand()
- Removed unused chatCommand import from lm/utils
- Each invocation now creates a new chat session instead of reusing existing one

Co-authored-by: alexr00 <[email protected]>
Copilot AI changed the title [WIP] Update quick chat to use a new conversation for each request Use NEW_CHAT command to create fresh chat sessions for each issue action Dec 10, 2025
Copilot AI requested a review from alexr00 December 10, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a new quick chat for each request

2 participants