fix: resolve lint errors in chat-panel and chat-sessions-sidebar

This commit is contained in:
kumarabhirup 2026-02-13 19:39:55 -08:00
parent c8fb0280ea
commit fdfa5184ee
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167
3 changed files with 30 additions and 30 deletions

View File

@ -700,7 +700,7 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
savedMessageIdsRef.current.clear();
isFirstFileMessageRef.current = true;
(async () => {
void (async () => {
const sessions =
(await fetchFileSessionsRef.current?.()) ?? [];
if (cancelled) {
@ -799,15 +799,15 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
savedMessageIdsRef.current.add(m.id);
}
if (filePath) {
fetchFileSessionsRef.current?.().then(
(sessions) => {
setFileSessions(sessions);
},
);
}
if (filePath) {
void fetchFileSessionsRef.current?.().then(
(sessions) => {
setFileSessions(sessions);
},
);
}
if (filePath && onFileChanged) {
if (filePath && onFileChanged) {
fetch(
`/api/workspace/file?path=${encodeURIComponent(filePath)}`,
)
@ -877,13 +877,13 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
onActiveSessionChange?.(sessionId);
onSessionsChange?.();
if (filePath) {
fetchFileSessionsRef.current?.().then(
(sessions) => {
setFileSessions(sessions);
},
);
}
if (filePath) {
void fetchFileSessionsRef.current?.().then(
(sessions) => {
setFileSessions(sessions);
},
);
}
}
// Build message with optional attachment prefix
@ -907,8 +907,8 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
isFirstFileMessageRef.current = false;
}
sendMessage({ text: messageText });
},
void sendMessage({ text: messageText });
},
[
attachedFiles,
isStreaming,
@ -929,9 +929,9 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
return;
}
// Stop any active stream/reconnection for the old session.
reconnectAbortRef.current?.abort();
stop();
// Stop any active stream/reconnection for the old session.
reconnectAbortRef.current?.abort();
void stop();
setLoadingSession(true);
setCurrentSessionId(sessionId);
@ -1006,9 +1006,9 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
],
);
const handleNewSession = useCallback(async () => {
reconnectAbortRef.current?.abort();
stop();
const handleNewSession = useCallback(async () => {
reconnectAbortRef.current?.abort();
void stop();
setIsReconnecting(false);
setCurrentSessionId(null);
sessionIdRef.current = null;
@ -1066,9 +1066,9 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
reconnectAbortRef.current?.abort();
setIsReconnecting(false);
// Stop the useChat transport stream
stop();
}, [currentSessionId, stop]);
// Stop the useChat transport stream
void stop();
}, [currentSessionId, stop]);
// ── Attachment handlers ──
@ -1378,7 +1378,7 @@ export const ChatPanel = forwardRef<ChatPanelHandle, ChatPanelProps>(
style={{ background: "var(--color-bg)" }}
>
<div
className={`${compact ? "" : "max-w-3xl mx-auto"}`}
className={compact ? "" : "max-w-3xl mx-auto"}
>
<div
className="rounded-2xl overflow-hidden"

View File

@ -74,7 +74,7 @@ function ChatBubbleIcon() {
export function ChatSessionsSidebar({
sessions,
activeSessionId,
activeSessionTitle,
activeSessionTitle: _activeSessionTitle,
onSelectSession,
onNewSession,
}: ChatSessionsSidebarProps) {

View File

@ -1,6 +1,6 @@
{
"name": "ironclaw",
"version": "2026.2.10-1.11",
"version": "2026.2.10-1.13",
"description": "AI-powered CRM platform with multi-channel agent gateway, DuckDB workspace, and knowledge management",
"keywords": [],
"license": "MIT",