Skip to content

Conversation

@DayuanJiang
Copy link
Owner

Summary

Fixes visual glitches when refreshing the page with existing chat history:

  • Flash of example panel: Previously showed example panel briefly before loading saved messages
  • Animation bounce: All restored messages played entry animation on refresh
  • Tool/reasoning expansion: Tool calls and reasoning blocks expanded then collapsed

Changes

  • Add isRestored state to track localStorage restoration completion
  • Show example panel only after confirming no saved messages exist
  • Skip animate-message-in for restored messages
  • Default tool calls to collapsed state for restored messages
  • Default reasoning blocks to collapsed for restored messages

- Add isRestored state to track when localStorage restoration completes
- Show example panel only after confirming no saved messages exist
- Skip message animations for restored messages
- Default tool calls and reasoning blocks to collapsed for restored messages
@DayuanJiang DayuanJiang merged commit 0252752 into main Jan 1, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants