fix: refactored linter errors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user