co-mono/packages/coding-agent/src/modes/interactive
Christian Catalan 05b9d55656
feat(oauth): show paste input immediately during OpenAI Codex login (#468)
Previously, users had to wait up to 60 seconds for the browser callback
to timeout before being prompted to paste the authorization code. This
was problematic for SSH/VPS sessions where the callback cannot work.

Now the paste input is shown immediately alongside the browser flow:
- Browser callback and manual paste race - whichever completes first wins
- Desktop users: browser callback succeeds, input is cleaned up
- SSH/VPS users: paste code immediately without waiting

Changes:
- Add cancelWait() to OAuth server for early termination of polling loop
- Add onManualCodeInput callback that races with browser callback
- Show paste input immediately in TUI for openai-codex provider
- Clean up input on success, error, or when browser callback wins

Co-authored-by: cc-vps <crcatala+vps@gmail.com>
2026-01-05 18:47:58 +01:00
..
components Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
theme revert: remove unnecessary themeOverride params from theme functions 2026-01-04 20:27:46 +01:00
interactive-mode.ts feat(oauth): show paste input immediately during OpenAI Codex login (#468) 2026-01-05 18:47:58 +01:00