chat: stick-to-bottom auto-scroll with jump-to-latest button
Nightly Build / build (push) Successful in 6m51s

Auto-scroll now yields when the reader scrolls away from the bottom, so a
fast-streaming reply no longer fights someone reading the start. Stickiness is
a flag driven by a passive scroll listener (not a per-flush distance check,
which breaks when one flush adds more than the threshold of content); scrolling
back within the band re-arms it.

Centralised in chat-session.js (_scrollToBottom(force) + _forceScrollToBottom
+ _messagesContainer hook), removing the duplicated overrides in copilot.js /
chat-page.js. Force-scroll is used where the latest must be shown: history
load, chat reopen, approval/clarification prompts, and message send.

A sticky 'jump to latest' affordance appears only while scrolled up.
This commit is contained in:
2026-07-24 21:06:04 +01:00
parent d1d0a2af26
commit db6e395c11
7 changed files with 140 additions and 19 deletions
+1
View File
@@ -68,6 +68,7 @@ export default {
'chat.reasoning': 'Raisonnement…',
'chat.attach': 'Joindre des fichiers',
'chat.new_session': 'Nouvelle conversation',
'chat.scroll_to_latest': 'Aller aux derniers messages',
'chat.security_group': 'Groupe de sécurité',
'chat.collapse': 'Masquer la discussion',
'chat.close_tab': 'Fermer l\'onglet',