copilot-sdk
copilot-sdk copied to clipboard
BUG: Task tool sub-agents hardcode stream: true, breaking non-streaming LLM providers
Expected behavior: Sub-agents should inherit the session's streaming configuration rather than hardcoding stream: true.
Stream is hardcoded, though:
await this.runCompletionWithTools(e, n, [...], tools, l,
{initialTurnCount: y, abortSignal: I, stream: !0}, // ← hardcoded
...)
Repro: Use a custom LLM provider that only supports non-streaming. Parent agent works fine. Invoke any sub-agent via task() tool and it fails.
Patching app.js post-install to flip stream:!0 → stream:!1 in the M6.agent() call site worked.