()
| 43 | func (p phase) active() bool { return p != phaseIdle } |
| 44 | |
| 45 | func (p phase) label() string { |
| 46 | switch p { |
| 47 | case phaseThinking: |
| 48 | return "thinking" |
| 49 | case phaseStreaming: |
| 50 | return "generating" |
| 51 | case phaseRunning: |
| 52 | return "running" |
| 53 | } |
| 54 | return "" |
| 55 | } |
| 56 | |
| 57 | // turnOutcome is how a finished turn ended, frozen into the status bar until the |
| 58 | // next submit. outcomeNone is the zero value (no turn has finished yet, or the |