v3.1.7
π Bug Fix: Messages Disappearing During Thinking/Tool-Calling
Problem: When the conversation had several messages and the model entered thinking mode or tool-calling, the chat interface would appear empty. Users had to scroll up to see the messages.
Root Cause: The LazyVStack was limiting visible messages to 20. When the model entered thinking mode, a new message with expanded reasoning would push previous messages out of view, making the chat appear empty.
Fix:
- Increased initial
visibleMessageCountfrom 20 to 100 - "Load earlier messages" button now loads 50 at a time (was 20)
- Added retry mechanism to
scrollToBottom(100ms delay) to handle async layout changes during reasoning expansion and tool results - Reset
visibleMessageCountto 100 on thread switch (was 20)
Changes:
Views/Chat/ChatView.swiftβ Better message visibility and scroll handling- Bump version to 3.1.7