Add file changes panel per conversation#11494
Merged
hannesrudolph merged 3 commits intoRooCodeInc:mainfrom Feb 19, 2026
Merged
Conversation
Contributor
All four previously flagged issues have been resolved in this commit. No new issues found.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
webview-ui/src/components/chat/utils/fileChangesFromMessages.ts
Outdated
Show resolved
Hide resolved
hannesrudolph
approved these changes
Feb 19, 2026
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.
Closes: #11493
Description
This PR adds a per-conversation file diff feature: for each task, users can see a single list of all files changed in that conversation and expand to view the diff for each file (similar to Cursor's file diff per chat).
Implementation:
webview-ui/src/components/chat/utils/fileChangesFromMessages.ts): New utility that, givenclineMessages, returns a list of file-change entries (path,diff,diffStats). It considers bothtype === "say"+say === "tool"andtype === "ask"+ask === "tool"(file edits are stored as ask messages after approval). Partial messages are skipped. Single-file tools (editedExistingFile,appliedDiff,newFileCreated, etc.) andbatchDiffsare supported.webview-ui/src/components/chat/FileChangesPanel.tsx): New collapsible panel that shows "X file(s) changed in this conversation" and, when expanded, one row per file (grouped by path; multiple edits to the same file are merged) with an expandable diff via existingCodeAccordian. Renders only when there is at least one file change. Placed below the scrollable chat and above the action buttons.webview-ui/src/components/chat/ChatView.tsx): Renders<FileChangesPanel clineMessages={messages} />in the task view.fileChangesInConversation.headerwith{{count}}inen,de, andfrchat locales.No new persistence or extension API; all data is derived from existing task UI messages.
Test Procedure
pnpm run vsix(or run from workspace with F5).Pre-Submission Checklist
webview-ui/src/__tests__/Screenshots / Videos
Documentation Updates
Additional Notes
nullwhen there are no file changes, so no empty section is shown.CodeAccordian,parseUnifiedDiff, and existing diff styling for consistency with inline tool blocks.Get in Touch
Discord: santy2509
Start a new Roo Code Cloud session on this branch