mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 11:08:47 +02:00
Clearing in place (setMessages + remount) left the conversation rendered — CopilotKit keeps chat state beyond agent.messages — so the button now reloads the page after deleting the thread: a fresh boot hydrates from the empty store and shows the welcome screen with suggestions, which previously only appeared after a manual refresh. Supporting changes: - CopilotChat gets an explicit agentId="wealthysmart" (without it, it resolves DEFAULT_AGENT_ID and can bind a different client agent instance than useAgent's). - The BFF answers CopilotChat's POST …/connect with an immediately-completed stream: the runtime's in-memory runner replays this PROCESS's event history, which resurrects cleared conversations and double-feeds hydration. The empty-messages hydration run against the DB store is the single restore path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
23 KiB
23 KiB