feat: optimize subagent list children query

This commit is contained in:
imccyu
2026-08-01 14:30:36 +08:00
committed by Tianyi Cui
parent 5d56019d22
commit 8c9cd4c15d
28 changed files with 261 additions and 86 deletions
@@ -102,6 +102,7 @@ describe('dsh-tool-subagent-control/list-agents', () => {
label: 'finished once',
mode: 'one-shot',
activity: 'inactive',
hasChildren: false,
},
{
kind: 'child',
@@ -109,6 +110,7 @@ describe('dsh-tool-subagent-control/list-agents', () => {
label: 'real child',
mode: 'continuable',
activity: 'inactive',
hasChildren: false,
},
{
kind: 'child',
@@ -116,6 +118,7 @@ describe('dsh-tool-subagent-control/list-agents', () => {
label: 'still working',
mode: 'continuable',
activity: 'running',
hasChildren: true,
},
{ kind: 'diagnostic', id: SessionId('broken-child'), reason: 'corrupt' },
]