fix: pass diff information to code editor

This commit is contained in:
simosmik
2026-02-12 22:38:32 +00:00
parent 0d0740760a
commit 2d3d924272

View File

@@ -181,7 +181,10 @@ export const ToolRenderer: React.FC<ToolRendererProps> = 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 (