|
@@ -221,7 +221,7 @@ describe('dsh-tool-subagent-control', () => {
|
|
|
senderSessionId: started.childId,
|
|
senderSessionId: started.childId,
|
|
|
})
|
|
})
|
|
|
expect(delivered[0]?.message.content).toEqual([
|
|
expect(delivered[0]?.message.content).toEqual([
|
|
|
- { type: 'text', text: `Agent ${started.childId} sent a message:` },
|
|
|
|
|
|
|
+ { type: 'text', text: `Agent ${started.childId} sent a message: ` },
|
|
|
{ type: 'text', text: 'CHILD_FINDING' },
|
|
{ type: 'text', text: 'CHILD_FINDING' },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
@@ -257,7 +257,7 @@ describe('dsh-tool-subagent-control', () => {
|
|
|
senderSessionId: parent.id,
|
|
senderSessionId: parent.id,
|
|
|
})
|
|
})
|
|
|
expect(followUp?.type === 'user/message' && followUp.data.content).toEqual([
|
|
expect(followUp?.type === 'user/message' && followUp.data.content).toEqual([
|
|
|
- { type: 'text', text: `Agent ${parent.id} sent a message:` },
|
|
|
|
|
|
|
+ { type: 'text', text: `Agent ${parent.id} sent a message: ` },
|
|
|
{ type: 'text', text: 'and then?' },
|
|
{ type: 'text', text: 'and then?' },
|
|
|
])
|
|
])
|
|
|
})
|
|
})
|
|
@@ -288,7 +288,7 @@ describe('dsh-tool-subagent-control', () => {
|
|
|
: [])
|
|
: [])
|
|
|
expect(prompts).toEqual([
|
|
expect(prompts).toEqual([
|
|
|
'long work',
|
|
'long work',
|
|
|
- `Agent ${parent.id} sent a message:`,
|
|
|
|
|
|
|
+ `Agent ${parent.id} sent a message: `,
|
|
|
'also consider Y',
|
|
'also consider Y',
|
|
|
])
|
|
])
|
|
|
})
|
|
})
|
|
@@ -411,9 +411,9 @@ describe('dsh-tool-subagent-control interrupt_agent', () => {
|
|
|
: [])
|
|
: [])
|
|
|
expect(prompts).toEqual([
|
|
expect(prompts).toEqual([
|
|
|
'long work',
|
|
'long work',
|
|
|
- `Agent ${parent.id} sent a message:`,
|
|
|
|
|
|
|
+ `Agent ${parent.id} sent a message: `,
|
|
|
'parked follow-up',
|
|
'parked follow-up',
|
|
|
- `Agent ${parent.id} sent a message:`,
|
|
|
|
|
|
|
+ `Agent ${parent.id} sent a message: `,
|
|
|
'wake up',
|
|
'wake up',
|
|
|
])
|
|
])
|
|
|
})
|
|
})
|