fix: reverse conversation log order to show newest messages at bottom
Bug: Viewport scrolled to bottom showed system prompt (oldest message) instead of most recent messages, making conversation appear backwards. Cause: Logs were rendered in chronological order (oldest to newest), but viewport starts at bottom. This put oldest messages at the scroll bottom where users expect newest messages. Fix: Render logs in reverse order (newest first) in updateViewportContent(). Now bottom of scroll shows most recent messages, matching chat UX where: - New messages appear at bottom - Scroll up to see history - System prompt at top (scroll all the way up to see it) viewport.GotoBottom() on focus view entry now correctly shows latest messages.
xonecas2026-02-09
3dd1fc383daf10a8535a9710ae3c89ef68c81e42
parent 1c8d566