feat: add jump-to-file navigation for file edit operations

When auto-approve is enabled, users could not easily navigate to edited
files since the diff view was skipped. This change adds the onJumpToFile
prop to CodeAccordian for editedExistingFile, appliedDiff, insertContent,
and searchAndReplace operations, allowing users to click the external link
icon to open the edited file.

Fixes #10144
This commit is contained in:
Roo Code 2025-12-17 07:19:41 +00:00
parent 2863b1c3f1
commit 65f04e173e

View file

@ -438,6 +438,7 @@ export const ChatRowContent = ({
isLoading={message.partial}
isExpanded={isExpanded}
onToggleExpand={handleToggleExpand}
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
diffStats={tool.diffStats}
/>
</div>
@ -476,6 +477,7 @@ export const ChatRowContent = ({
isLoading={message.partial}
isExpanded={isExpanded}
onToggleExpand={handleToggleExpand}
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
diffStats={tool.diffStats}
/>
</div>
@ -510,6 +512,7 @@ export const ChatRowContent = ({
isLoading={message.partial}
isExpanded={isExpanded}
onToggleExpand={handleToggleExpand}
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
diffStats={tool.diffStats}
/>
</div>