test(subagent): expect the list_subagent_models hint in SDK effort-only rejection

This commit is contained in:
Dudu-0223 committed 2026-11-16 11:32:27 +08:00
1 parent 7c2ca7cb6e
commit 42849bcf42
1 file changed
+1 -1
@@ -157,7 +157,7 @@ describe('SDK subagent routing and diagnostics through the production profile',
expect(results[0]!.data.message.isError).toBe(true)
expect(results[0]!.data.message.content).toEqual([{
type: 'text',
text: 'Error: invalid arguments: child LLM `reasoning_effort` requires both `provider` and `model`; supply both or omit all three fields',
text: 'Error: invalid arguments: child LLM `reasoning_effort` requires both `provider` and `model`; supply both or omit all three fields. Call `list_subagent_models` to see the routes you may select.',
}])
expect(results[0]!.data.error).toEqual({ name: 'ToolArgsError', code: 'INVALID_ARGS' })
expect(events.some(event => event.type === 'subagent/catalog')).toBe(false)