fix: “View in Chat Panel” with Claude not understanding review comments#295331
Open
1Ninad wants to merge 4 commits intomicrosoft:mainfrom
Open
fix: “View in Chat Panel” with Claude not understanding review comments#2953311Ninad wants to merge 4 commits intomicrosoft:mainfrom
1Ninad wants to merge 4 commits intomicrosoft:mainfrom
Conversation
…iew in Chat Panel with Claude agent
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #292892
Problem
When using Code Review with Copilot and then switching the session to Claude, clicking “View in Chat Panel” and asking something like “Explain your comment” does not work.
Claude cannot understand the original review comment.
Root Cause
The review comment is added to chat as a completed request.
If it was generated by a different agent (Copilot) and the active agent is Claude, Claude does not receive that comment in usable context.
Fix
When sending a message:
…if needed).---block.Otherwise, behavior remains unchanged.
Only the outbound request message is modified. No changes to session history, SCM, or other chat logic.
File
src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.tsHow to Test
Before: Claude has no context.
After: Claude correctly explains the review comment.