Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,9 @@ function SubAgentPanel(props: {
const m = untrack(() => max())
const target = props.sortOrder() === "desc" ? 0 : Math.max(0, total - m)
setScrollOffset(target)
try { persistScroll(props.sessionId, target) } catch {}
setTimeout(() => {
try { persistScroll(props.sessionId, target) } catch {}
}, 0)
})

// When new entries arrive while viewing the newest end, keep the view at newest
Expand All @@ -1088,7 +1090,9 @@ function SubAgentPanel(props: {
if (wasAtNewest) {
const target = props.sortOrder() === "desc" ? 0 : Math.max(0, total - m)
setScrollOffset(target)
try { persistScroll(props.sessionId, target) } catch {}
setTimeout(() => {
try { persistScroll(props.sessionId, target) } catch {}
}, 0)
}
})

Expand Down
Loading