copilot-sdk icon indicating copy to clipboard operation
copilot-sdk copied to clipboard

BUG: Task tool sub-agents hardcode stream: true, breaking non-streaming LLM providers

Open knifeyspoony opened this issue 8 months ago • 0 comments

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.

knifeyspoony avatar Mar 26 '26 13:03 knifeyspoony