Ensure autoscroll reacts to UI toggles

This commit is contained in:
Shantur Rathore
2025-11-27 19:20:55 +00:00
parent cc45c16d73
commit 042a45db0d
3 changed files with 51 additions and 15 deletions

View File

@@ -404,13 +404,10 @@ export function createInstanceMessageStore(instanceId: string): InstanceMessageS
parts.forEach((part, index) => {
const id = ensurePartId(messageId, part, index)
const cloned = clonePart(part)
if (typeof cloned.version !== "number") {
cloned.version = 0
}
map[id] = {
id,
data: cloned,
revision: cloned.version,
revision: 0,
}
ids.push(id)
})