Skip to content

Commit 46ef8a1

Browse files
committed
fix lint
1 parent 6a28f8c commit 46ef8a1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

extensions/cli/src/ui/hooks/useChat.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable max-lines */
2+
/* eslint-disable max-statements */
23
import type { ChatHistoryItem, Session } from "core/index.js";
34
import { useApp } from "ink";
45
import { useEffect, useRef, useState } from "react";
@@ -526,7 +527,7 @@ export function useChat({
526527
} catch (error) {
527528
// If compaction fails, remove the queued message from display
528529
setQueuedMessages((prev) =>
529-
prev.filter((msg) => msg !== queuedMessageForDisplay)
530+
prev.filter((msg) => msg !== queuedMessageForDisplay),
530531
);
531532
throw error; // Re-throw to maintain error handling
532533
} finally {
@@ -541,14 +542,11 @@ export function useChat({
541542

542543
// Remove the queued message from display since it's now in chat history
543544
setQueuedMessages((prev) =>
544-
prev.filter((msg) => msg !== queuedMessageForDisplay)
545+
prev.filter((msg) => msg !== queuedMessageForDisplay),
545546
);
546547

547548
// Execute the streaming response with the updated history
548-
await executeStreamingResponse(
549-
newHistory,
550-
currentCompactionIndex,
551-
);
549+
await executeStreamingResponse(newHistory, currentCompactionIndex);
552550
} else {
553551
// Format message with attached files and images
554552
logger.debug("Processing message with images", {
@@ -596,7 +594,7 @@ export function useChat({
596594
} catch (error) {
597595
// If compaction fails, remove the triggering message from queue display
598596
setQueuedMessages((prev) =>
599-
prev.filter((msg) => msg !== compactionQueuedMessage)
597+
prev.filter((msg) => msg !== compactionQueuedMessage),
600598
);
601599
throw error; // Re-throw to maintain error handling
602600
} finally {
@@ -611,7 +609,7 @@ export function useChat({
611609

612610
// Remove the triggering message from queue display since it's now in chat history
613611
setQueuedMessages((prev) =>
614-
prev.filter((msg) => msg !== compactionQueuedMessage)
612+
prev.filter((msg) => msg !== compactionQueuedMessage),
615613
);
616614

617615
// Execute the streaming response

0 commit comments

Comments
 (0)