fix: refactored linter errors

This commit is contained in:
Bohdan Triapitsyn
2025-12-25 02:55:08 +02:00
parent 5e6e6a91cf
commit 3c05fa4c4e
7 changed files with 18 additions and 20 deletions
@@ -456,7 +456,7 @@ export const useTurnGrouping = (messages: ChatMessageEntry[]): UseTurnGroupingRe
next.set(turnId, { ...state, previewedPartIds: newPreviewed });
return next;
});
}, []);
}, [defaultActivityExpanded]);
const getTurnForMessage = React.useCallback(
(messageId: string): Turn | undefined => {
@@ -304,15 +304,12 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
syntaxTheme,
isMobile,
hasTouchInput,
copiedCode,
onCopyCode,
expandedTools,
onToggleTool,
onShowPopup,
streamPhase: _streamPhase,
allowAnimation: _allowAnimation,
onContentChange,
shouldShowHeader = true,
hasTextContent = false,
onCopyMessage,
copiedMessage = false,
@@ -1013,17 +1010,12 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
}, [
activityPartsByPart,
activityGroupSegmentsForMessage,
copiedCode,
copiedMessage,
expandedTools,
hasTextContent,
isMessageAnimating,
isMobile,
isToolFinalized,
messageId,
onContentChange,
onCopyCode,
onCopyMessage,
onShowPopup,
onToggleTool,
previewableActivityPartIds,
@@ -1031,14 +1023,11 @@ const AssistantMessageBody: React.FC<Omit<MessageBodyProps, 'isUser'>> = ({
shouldHoldReasoning,
shouldHoldTools,
shouldShowActivityGroup,
shouldShowHeader,
showReasoningTraces,
syntaxTheme,
toolConnections,
turnGroupingContext,
visibleActivityPartsForTurn,
visibleParts,
toolParts,
standaloneToolParts,
shouldRenderActivityGroup,
]);
@@ -176,7 +176,7 @@ export function WorkingPlaceholder({
// IMPORTANT: When statusText becomes null, we do NOT clear the display
// Only done/abort signals clear the display
}, [statusText, isWaitingForPermission, wasAborted, isComplete, state, displayedText, displayedPermission, showStatus, showResult, scheduleQueueProcess]);
}, [statusText, isWaitingForPermission, wasAborted, isComplete, state, displayedText, displayedPermission, showStatus, showResult, scheduleQueueProcess, isGenericStatus]);
// Cleanup on unmount
useEffect(() => {
@@ -259,7 +259,7 @@ const DiffViewerEntry = React.memo<DiffViewerEntryProps>(({
const diffData = React.useMemo(() => {
if (!cachedDiff) return null;
return { original: cachedDiff.original, modified: cachedDiff.modified };
}, [cachedDiff?.original, cachedDiff?.modified]);
}, [cachedDiff]);
if (!diffData) return null;