You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Codex provider uses an OAuth device-code flow for authentication (no static API key).
The TUI currently has no UI for this — users must authenticate out-of-band.
This issue adds a dedicated auth panel in the TUI that guides the user through the flow.
Backlog — pick up after the multi-agent foundation (#1#2#3) is stable.
Proposed flow
User selects Codex in the model selection panel
TUI detects no stored token → opens a DeviceAuthPanel overlay
Panel shows the device code + verification URL (copyable)
Background goroutine polls the OAuth token endpoint
On success → store token in credentials DB → close panel → activate Codex
Acceptance criteria
DeviceAuthPanel overlay with code + URL display
ctrl+c to copy the URL to clipboard
Auto-close on successful token exchange
Token stored encrypted in SQLite credentials DB under oauth_token:codex
Graceful timeout message if device code expires (typically 15 min)
Activity