Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(conversations): format useCallback dependency array

Steven Enamakel2afb18c14b25
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index abee50798b..8860185db3 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -1530,9 +1530,12 @@ const Conversations = ({
// would wake the stage on every keystroke. The ref is already maintained for
// the dictation handler and always holds the latest send fn.
const mascotSubmit = useCallback((text: string) => handleSendMessageRef.current?.(text), []);
- const mascotError = useCallback((message: string) => {
- setSendError(chatSendError('voice_transcription', message));
- }, [setSendError]);
+ const mascotError = useCallback(
+ (message: string) => {
+ setSendError(chatSendError('voice_transcription', message));
+ },
+ [setSendError]
+ );
useChatMascotSendBinding(chatMascot, {
submit: mascotSubmit,
onError: mascotError,