fix: handle multi-file tool diffs safely
Split multi-file patches before diff rendering Fixed hook dependency lint warnings
This commit is contained in:
@@ -1010,7 +1010,7 @@ const AssistantMessageBody = React.memo(({
|
||||
setIsSavingPlan(false);
|
||||
}
|
||||
},
|
||||
[assistantPlanText, currentProjectRef]
|
||||
[assistantPlanText, currentProjectRef, t]
|
||||
);
|
||||
|
||||
const [isSharing, setIsSharing] = React.useState(false);
|
||||
@@ -1123,7 +1123,7 @@ const AssistantMessageBody = React.memo(({
|
||||
setIsSharing(false);
|
||||
}
|
||||
},
|
||||
[messageId, isSharing]
|
||||
[messageId, isSharing, t]
|
||||
);
|
||||
|
||||
React.useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user