Repository navigation
fix(bots): virtualize chat history and load older messages - #961
Merged
Merged
Conversation
Scope bot history to the selected conversation and use the shared virtual feed to fetch older pages while scrolling. Jump directly to the history boundaries on Home and End. Fixes: #289
nixuuu
enabled auto-merge (squash)
November 18, 2026 12:09
This was referenced Nov 18, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 27, 2026
## Changes - The feed's top fade (under the header) and bottom fade (above the composer) always used the thread surface colour. A bot chat sits on the canvas, so in the dark theme both showed as lighter bands (`#20211c` over `#171914`). - `VirtualFeed` now takes the fade colour from `--feed-backdrop`, falling back to the surface. Threads are unchanged. - `ChatView` paints `bg-canvas` itself and sets `--feed-backdrop` to the canvas, so the fades match the chat wherever it is mounted (the bot page, the `/dev/bots` gallery frame). Fixes: #961 ## Verification - Ran the web app against an isolated gateway and PostgreSQL in Chromium. Checked the `/dev/bots` chat in light and dark mode with rows scrolled under both fades: the fades now blend into the chat background. Forcing the old colour reproduced the reported bands. - `/dev/long-thread`: the feed fade still resolves to the surface colour. - oxlint and oxfmt on the two edited files. Everything else is left to CI. - No UI text changed, so no copy audit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Verification
dev. Scoped web typecheck, lint, formatting and diff checks passed.bun run check:tmppassed all 13 tests inbot-chat-history.test.ts,history-pages.test.tsandthread-scroll.test.ts.Copy audit
Passed the checklist in
docs/copy.md. Removed “Show earlier messages” because scrolling now loads the next page. Kept “Loading earlier messages…” as the progress announcement. Changed “Could not load earlier messages. Try again.” to the status “Could not load earlier messages.” with a separate “Try again” action. Reused “Jump to latest” from threads. Checked text, wrapping and truncation with short through long bot names at both widths.Fixes: #289