Both backends already implement streaming; the non-streaming fallback was dead code that added complexity. - Backend interface now requires only ChatStream; the separate StreamingBackend interface and Chat method are removed - Both OpenAIBackend and OllamaBackend lose their Chat methods and the stream=bool parameter on their internal doChat helpers - Loop.Run is simplified: one streaming path, no streamed flag, no skippedCalls map, no shouldStop helper, no runStreamStep indirection - "call" events are now emitted solely in the act phase, not in the stream phase, so dedup tracking is no longer needed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| context.go | ||
| loop.go | ||
| session.go | ||
| state.go | ||