fix: show "generating response" status when tools completed but AI still streaming

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7418andClaude Opus 4.6 committed 2026-02-12 01:25:47 +08:00
1 parent 4fa26032a4
commit 25abfb5404
2 files changed
+6 -1

No files matched your search

@@ -222,6 +222,7 @@ export function ToolActionsGroup({
const summaryParts: string[] = [];
if (runningCount > 0) summaryParts.push(`${runningCount} running`);
if (doneCount > 0) summaryParts.push(`${doneCount} completed`);
if (runningCount === 0 && isStreaming) summaryParts.push('generating response');
if (summaryParts.length === 0) summaryParts.push(`${tools.length} actions`);
return (
+5 -1
View File
@@ -147,7 +147,11 @@ export function StreamingMessage({
// Extract a human-readable summary of the running command
const getRunningCommandSummary = (): string | undefined => {
if (runningTools.length === 0) return undefined;
if (runningTools.length === 0) {
// All tools completed but still streaming — AI is generating text
if (toolUses.length > 0) return 'Generating response...';
return undefined;
}
const tool = runningTools[runningTools.length - 1];
const input = tool.input as Record<string, unknown>;
if (tool.name === 'Bash' && input.command) {