From 2d3d924272748cc002f175f79215f9e4c1b43224 Mon Sep 17 00:00:00 2001 From: simosmik Date: Thu, 12 Feb 2026 22:38:32 +0000 Subject: [PATCH] fix: pass diff information to code editor --- src/components/chat/tools/ToolRenderer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/chat/tools/ToolRenderer.tsx b/src/components/chat/tools/ToolRenderer.tsx index 782c769..029957d 100644 --- a/src/components/chat/tools/ToolRenderer.tsx +++ b/src/components/chat/tools/ToolRenderer.tsx @@ -181,7 +181,10 @@ export const ToolRenderer: React.FC = memo(({ // For edit tools, make the title (filename) clickable to open the file const handleTitleClick = (toolName === 'Edit' || toolName === 'Write' || toolName === 'ApplyPatch') && contentProps.filePath && onFileOpen - ? () => onFileOpen(contentProps.filePath) + ? () => onFileOpen(contentProps.filePath, { + old_string: contentProps.oldContent, + new_string: contentProps.newContent + }) : undefined; return (