fix: delay creation agent reply until final session

This commit is contained in:
2026-04-24 12:17:17 +08:00
parent 13388d333e
commit 5050ce4ff8
3 changed files with 37 additions and 37 deletions

View File

@@ -317,7 +317,8 @@ export function CreationAgentWorkspace({
shouldShowQuickAction(action, session, progress),
);
const streamingMessageId = `streaming-assistant-${session.sessionId}`;
const displayedMessages = isStreamingReply
const shouldShowStreamingReply = isStreamingReply && streamingReplyText.trim();
const displayedMessages = shouldShowStreamingReply
? [
...session.messages,
{