Skip to content

Auto-scroll chat and hide empty diffs tab#478

Merged
BunsDev merged 1 commit intomainfrom
okcode/scroll-to-latest-message
Apr 20, 2026
Merged

Auto-scroll chat and hide empty diffs tab#478
BunsDev merged 1 commit intomainfrom
okcode/scroll-to-latest-message

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 20, 2026

Summary

  • Keep chat views anchored to the latest message using a bottom anchor fallback, which improves scroll-to-end reliability.
  • Normalize diff/highlight language ids through a shared mapping so common VS Code and file-based aliases resolve correctly in Shiki.
  • Hide the Diffs tab when a thread has no diff content and avoid forcing the right panel open when switching tabs programmatically.
  • Update the Capacitor local notifications patch script for the Capacitor v8 Swift API.
  • Add and adjust tests for language normalization, diff language inference, and right panel tab behavior.

Testing

  • Not run (not requested).
  • Added unit coverage for resolveFileDiffLanguage alias normalization.
  • Updated right panel store coverage for inactive tab switching without opening the panel.
  • Adjusted PR review utility coverage to expect normalized diff language ids.

- Add a bottom anchor to keep the conversation pinned to the newest message
- Fall back to the scroll container when scrolling programmatically
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 20, 2026 8:09am
v0-compute-the-platform-to-build Error Error Apr 20, 2026 8:09am

@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 20, 2026
@BunsDev BunsDev merged commit 557085a into main Apr 20, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant