fix(desktop): scroll to bottom when switching to active session

Closes #683 — switching to a session whose agent is still
streaming left the viewport pinned near the user's last message
instead of jumping to the latest draft. Mirror the existing
refreshEmptyState(sess); scrollBottom(true) pattern from
sibling render paths so setActiveSession lands at the bottom.
This commit is contained in:
Kailigithub committed 2026-07-29 03:09:48 +08:00
1 parent 555d7bc374
commit b4aeb005b5
1 file changed
+1
+1
View File
@@ -2711,6 +2711,7 @@ function setActiveSession(id) {
r.draftEl = null;
resetTypewriterState(r);
renderAllMessages(sess);
scrollBottom(true);
setBusy(sess, rt(sess).busy);
renderSessionList();
refreshPlanBar(null);