PausedEvent reports that the run loop has reached an iteration boundary and is now blocked because /pause was toggled on. It is emitted once the in-flight LLM request and its tool calls have finished — i.e. the transition from "pausing" (still finishing a roundtrip) to "paused" (idle until resumed).
| 522 | // (idle until resumed). The TUI uses it to flip its indicator from |
| 523 | // "Pausing…" to "Paused". |
| 524 | type PausedEvent struct { |
| 525 | AgentContext |
| 526 | |
| 527 | Type string `json:"type"` |
| 528 | SessionID string `json:"session_id,omitempty"` |
| 529 | } |
| 530 | |
| 531 | func Paused(sessionID, agentName string) Event { |
| 532 | return &PausedEvent{ |
nothing calls this directly
no outgoing calls
no test coverage detected