At a high level each cycle does:
- Poll terminal/runtime events.
- Dispatch input and runtime events into state transitions.
- Process pending actions and agent stream messages.
- Compose lines/panels from current state.
- Render frame and update cursor/overlays.