From 65f04e173ed73b6bcb5fe111396be6e9fccce69e Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 17 Dec 2025 07:19:41 +0000 Subject: [PATCH] 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 --- webview-ui/src/components/chat/ChatRow.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 22ca6e4357..ee06773aa0 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -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} /> @@ -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} /> @@ -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} />