fix: restore smooth chat auto-scroll and live compaction updates

- Keep assistant auto-scroll smooth during active responses without periodic snaps
- Restore live `/compact` rendering and streamed compaction summaries without refresh
- Preserve global event handling while routing session and message updates efficiently
This commit is contained in:
Bohdan Triapitsyn
2026-04-05 23:01:12 +03:00
parent 8b41a620d9
commit 4a3b7ec5c9
4 changed files with 111 additions and 13 deletions
+5 -1
View File
@@ -446,7 +446,11 @@ const resolveDirectoryFromRoutingIndex = (
}
}
if ((!normalizedDirectory || normalizedDirectory === "global") && childStores.children.size === 1) {
if (
(sessionID || messageID)
&& (!normalizedDirectory || normalizedDirectory === "global")
&& childStores.children.size === 1
) {
const onlyDirectory = childStores.children.keys().next().value
if (typeof onlyDirectory === "string" && onlyDirectory.length > 0) {
return onlyDirectory