phase is the turn state machine and single source of truth: idle = no turn; thinking = awaiting the model, no tokens yet; streaming = content flowing; running = a tool is executing.
| 32 | // thinking = awaiting the model, no tokens yet; streaming = content flowing; |
| 33 | // running = a tool is executing. |
| 34 | type phase int |
| 35 | |
| 36 | const ( |
| 37 | phaseIdle phase = iota |
nothing calls this directly
no outgoing calls
no test coverage detected