feat(FN-1887): merge fusion/fn-1887

This commit is contained in:
Fusion
2026-04-16 10:53:06 -07:00
committed by gsxdsm
parent 3aeb63ae68
commit 74b4d20c45
11 changed files with 203 additions and 14 deletions

View File

@@ -149,6 +149,10 @@ export function useQuickChat(
return;
}
// Clear old messages immediately so stale conversation doesn't briefly flash
// while the new agent's session loads
setMessages([]);
// New agent — initialize session
currentAgentIdRef.current = agentId;
await initializeSession(agentId);