mirror of
https://github.com/crabwise-ai/crabwalk.git
synced 2026-08-14 00:57:52 +00:00
revert: undo subagent filtering changes
This commit is contained in:
+1
-12
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user