This commit is contained in:
Chad Curtis committed 2025-09-05 23:21:58 +00:00
1 parent a59f99df62
commit fcfcacb855
11 files changed
+144 -902

No files matched your search

+3 -2
View File
@@ -9,6 +9,7 @@ import { useFS } from '@/hooks/useFS';
import { useKeepAlive } from '@/hooks/useKeepAlive';
import { useAIChatSession } from '@/hooks/useAIChatSession';
import type { AIMessage } from '@/lib/SessionManager';
import { ModelSelector } from '@/components/ModelSelector';
@@ -310,7 +311,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
streamingMessage.content ? (
<AIMessageItem
key="streaming-message"
message={streamingMessage as OpenAI.Chat.Completions.ChatCompletionMessageParam}
message={streamingMessage as AIMessage}
isCurrentlyLoading
/>
) : (
@@ -329,7 +330,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
<div className="flex items-center gap-2 px-2 py-1 text-xs text-muted-foreground">
<Loader2 className="h-3 w-3 animate-spin flex-shrink-0" />
<span className="font-medium">
Running {(streamingMessage.tool_calls[0] as OpenAI.Chat.Completions.ChatCompletionMessageFunctionToolCall).function.name}...
Running {streamingMessage.tool_calls?.[0]?.function?.name || 'tool'}...
</span>
</div>
</div>