docs(subagent): trim comments in the delegated-policy additions

This commit is contained in:
Hypatia May
2026-08-10 19:46:07 +08:00
parent 9e40fc7f6b
commit 5ba4055ed4
6 changed files with 20 additions and 37 deletions
@@ -247,8 +247,7 @@ describe('in-process structured output', () => {
const result = await run.result
expect(result.stopReason).toBe('error')
expect(result.structured).toBeUndefined()
// Exactly one model request and one caller-supplied user message (the
// delegation runtime-context snapshot aside): no nudge turn exists.
// Exactly one model request and one caller-supplied user message: no nudge turn exists.
expect(adapter.requests.length).toBe(1)
const child = ctx.agents.get(run.id)!
expect(child.session.events.filter(e => e.type === 'user/message' && e.data.source.kind !== 'plugin').length).toBe(1)