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:
parent
50bca0a770
commit
3bb75b6c20
|
|
@ -218,7 +218,6 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
scrollTimer.start()
|
||||
buildSessionTree()
|
||||
}
|
||||
function onActiveAgentIdChanged() {
|
||||
chatModel.reset()
|
||||
|
|
@ -230,7 +229,6 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
scrollTimer.start()
|
||||
buildSessionTree()
|
||||
}
|
||||
function onStreamingDone() {
|
||||
chatModel.appendData("\n[[[info]]]\nsession ended\n[[[end]]]\n")
|
||||
|
|
|
|||
Reference in New Issue