chore: update workspace dependencies and chat behavior

- Adjust package metadata and lockfiles across the workspace
- Refine chat sidebar and auto-scroll behavior in the UI
- Update PWA install handling alongside runtime package changes
This commit is contained in:
Bohdan Triapitsyn
2026-04-06 13:04:36 +03:00
parent 4db1e6baad
commit e42471ee7b
8 changed files with 136 additions and 10 deletions
@@ -584,6 +584,7 @@ export const ChatContainer: React.FC = () => {
const handleSessionReselected = (event: Event) => {
const customEvent = event as CustomEvent<string>;
if (customEvent.detail !== currentSessionId) return;
if (isPinned || !isOverflowing || isProgrammaticFollowActive) return;
resumeToBottomInstant();
};
@@ -591,7 +592,7 @@ export const ChatContainer: React.FC = () => {
return () => {
window.removeEventListener(SESSION_RESELECTED_EVENT, handleSessionReselected as EventListener);
};
}, [currentSessionId, resumeToBottomInstant]);
}, [currentSessionId, isOverflowing, isPinned, isProgrammaticFollowActive, resumeToBottomInstant]);
React.useLayoutEffect(() => {
const container = scrollRef.current;