currently, the scrollback system is a naive implementation that loads, per-session, a scrollback file at open time, and then appends lines to it as-needed. when the cap is reached, data is simply deleted.
issues with this:
- keeping all messages in RAM always is inefficient and will not scale to a large quantity of messages.
- functionally unlimited scrollback is a requirement for long-term interpersonal communication.
- there is no way to support CHATHISTORY with the current system other than appending old messages to the buffer.