Skip to content

fix: preserve scroll position when loading older messages#1

Open
0xSolarPunk wants to merge 3 commits into
codex/group-bash-tool-cardsfrom
codex/fix-pr176-scroll-jump
Open

fix: preserve scroll position when loading older messages#1
0xSolarPunk wants to merge 3 commits into
codex/group-bash-tool-cardsfrom
codex/fix-pr176-scroll-jump

Conversation

@0xSolarPunk
Copy link
Copy Markdown
Owner

Summary

  • stop the chat mount autoscroll effect from retriggering when older messages are prepended
  • preserve the viewport anchor after load-more waits for Svelte to flush rendered messages
  • add a regression test for the scroll-anchor behavior

Validation

  • bun run --cwd web test src/lib/chat/tests/conversation-scroll-controller.test.ts src/lib/chat/tests/conversation-feed-items.test.ts
  • bun run check
  • bun run test
  • timeout 30s bun run start --port 0

Stacked on cfal#176.

* Group consecutive bash tool cards

* fix: keep bash group keys stable

---------

Co-authored-by: YK <chiayongkang@hotmail.com>
@0xSolarPunk 0xSolarPunk force-pushed the codex/fix-pr176-scroll-jump branch from 5dcaba5 to f00c1a9 Compare May 30, 2026 05:32
@0xSolarPunk 0xSolarPunk force-pushed the codex/fix-pr176-scroll-jump branch from f00c1a9 to e0b3b1d Compare May 30, 2026 10:30
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