820a40982e9436f9c83268f9c1166de748896ca6
Previously: setHistoricalMessages([]) + setCurrentThreadId() fired together, causing a render where both thread.messages (cleared by switchThread) and historicalMessages were empty → welcome screen shown. Fix: await loadThreadState() first, then set historicalMessages/ui and currentThreadId atomically. historicalMessages is populated before the first render after the switch, so the welcome screen never flashes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
17 MiB
Languages
TypeScript
98%
CSS
1.1%
JavaScript
0.6%
Dockerfile
0.1%