Overview
Autopilot uses an in‑process desktop runtime. The app sends user actions to the Codex app‑server client and renders normalized event streams for UI updates. Note: Current desktop builds connect to Codex via the app‑server client. Other agent adapters exist in the repo but are not enabled by default.Core Messages
UserAction::NewChat— start a new session and threadUserAction::Message— send a prompt to the active threadUserAction::Interrupt— stop an active turn
Session ID Flow
Autopilot uses a two-phase session ID:- Temporary session ID from
connect_unified_agent - Actual ACP session ID emitted via
SessionStarted
Event Streams
Normalized agent events are surfaced to the UI, including:- message/turn start and completion
- tool call updates
- token usage and rate limits