revert: undo subagent filtering changes

This commit is contained in:
Luciano Castillo
2026-01-29 15:52:53 -05:00
parent 8d417e2d18
commit 3c370e3595
+1 -12
View File
@@ -63,7 +63,7 @@ export function layoutGraph(
const isHorizontal = direction === 'LR' || direction === 'RL'
// Build session hierarchy and columns
const allSessions = nodes
const sessions = nodes
.filter((n) => n.type === 'session')
.map((n) => n.data as unknown as MonitorSession)
@@ -75,17 +75,6 @@ export function layoutGraph(
.filter((n) => n.type === 'exec')
.map((n) => ({ id: n.id.replace('exec-', ''), data: n.data as unknown as MonitorExecProcess }))
// Filter out empty subagent sessions (no actions or execs attached)
const sessions = allSessions.filter(s => {
const isSubagent = s.key.includes('subagent')
if (isSubagent) {
const hasActions = actions.some(a => a.data.sessionKey === s.key)
const hasExecs = execs.some(e => e.data.sessionKey === s.key)
return hasActions || hasExecs
}
return true
})
const crabNode = nodes.find((n) => n.type === 'crab')
// Build session column map - which column is each session in?