23527b3bdcbbeeba54ccf387c6adc3156abfca61
The threadJustSwitched suppression was too aggressive — it cleared lastMessagesRef on every thread switch, then relied on historicalMessages which loads async and may still be empty. Historical thread messages would never appear. Simplified fix: thread.switchThread() already clears thread.messages when switching, so thread.messages is always safe to trust directly. Use thread.messages when non-empty, else fall back to historicalMessages. Removes threadJustSwitched / lastMessagesRef / lastThreadIdRef entirely. 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%