fix(FN-4943): complete Step 3 — preserve clear/new dismiss behavior

Fusion-Task-Id: FN-4943
Fusion-Task-Lineage: 67dd5c2b-0b44-43dd-a016-0bff858ec4b9
This commit is contained in:
Fusion (runfusion.ai)
2026-05-18 02:00:21 -07:00
committed by gsxdsm
parent c6687bec09
commit 499f88f672
2 changed files with 3 additions and 3 deletions

View File

@@ -1642,8 +1642,8 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
if (trimmed === "/clear" || trimmed === "/new") {
clearComposerState();
stopStreaming();
clearPendingMessage();
stopStreaming();
void createSession({
agentId: activeSession.agentId,
modelProvider: activeSession.modelProvider ?? undefined,

View File

@@ -1988,16 +1988,16 @@ export function QuickChatFAB({
await roomsState.clearRoom(roomsState.activeRoom.id);
setHelpMessageVisible(false);
} else if (chatMode === "model") {
stopStreaming();
clearPendingMessage();
stopStreaming();
const parsed = parseModelSelection(resolvedModelSelection);
if (!parsed) {
return;
}
await startFreshSession(FN_AGENT_ID, parsed.modelProvider, parsed.modelId);
} else if (selectedAgentId) {
stopStreaming();
clearPendingMessage();
stopStreaming();
await startFreshSession(selectedAgentId);
}
} catch {