diff --git a/ee/tabby-ui/components/chat/chat-panel.tsx b/ee/tabby-ui/components/chat/chat-panel.tsx index 9e63cb15a471..83270c4964f6 100644 --- a/ee/tabby-ui/components/chat/chat-panel.tsx +++ b/ee/tabby-ui/components/chat/chat-panel.tsx @@ -284,10 +284,11 @@ function ChatPanelRenderer( ) : null} {relevantContext.map((item, idx) => { + // `filepath + range` as unique key + const key = `${item.git_url}_${item.filepath}_${item.range?.start}_${item.range?.end}` return (