Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

When chat history exceeds 128 messages, mux now truncates the display for
performance. This change adds the ability to load more history:

  • Click the 'hidden messages' banner to reveal 64 more messages
  • Scroll to the top of the chat to automatically load more
  • Scroll position is preserved when loading more messages

Implementation:

  • Added dynamic displayLimit to StreamingMessageAggregator
  • Added expandDisplayLimit() method to increase visible message count
  • Updated HistoryHiddenMessage to be clickable with hover state
  • Added onScrollNearTop callback to useAutoScroll hook
  • Wired up AIView to trigger loading on scroll and button click
  • Added hover color variables to all themes

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

When chat history exceeds 128 messages, mux now truncates the display for
performance. This change adds the ability to load more history:

- Click the 'hidden messages' banner to reveal 64 more messages
- Scroll to the top of the chat to automatically load more
- Scroll position is preserved when loading more messages

Implementation:
- Added dynamic displayLimit to StreamingMessageAggregator
- Added expandDisplayLimit() method to increase visible message count
- Updated HistoryHiddenMessage to be clickable with hover state
- Added onScrollNearTop callback to useAutoScroll hook
- Wired up AIView to trigger loading on scroll and button click
- Added hover color variables to all themes

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
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.

1 participant