gui: stop rebuilding session tree on selection changes

The dominant 9P spam came from buildSessionTree() re-listing
session/<sid>/agent on every activeSessionIdChanged and
activeAgentIdChanged signal. Tree rebuilds are now limited to
sessionsChanged and startup refresh; selection changes only
refresh the right pane transcript.
This commit is contained in:
Levi Neely 2026-08-01 21:48:04 +02:00
parent 50bca0a770
commit 3bb75b6c20
1 changed files with 0 additions and 2 deletions

View File

@ -218,7 +218,6 @@ ApplicationWindow {
} }
} }
scrollTimer.start() scrollTimer.start()
buildSessionTree()
} }
function onActiveAgentIdChanged() { function onActiveAgentIdChanged() {
chatModel.reset() chatModel.reset()
@ -230,7 +229,6 @@ ApplicationWindow {
} }
} }
scrollTimer.start() scrollTimer.start()
buildSessionTree()
} }
function onStreamingDone() { function onStreamingDone() {
chatModel.appendData("\n[[[info]]]\nsession ended\n[[[end]]]\n") chatModel.appendData("\n[[[info]]]\nsession ended\n[[[end]]]\n")