What happened?
/gpt-account add sends the OpenAI Codex OAuth select prompt through a text-input adapter. The UI renders a blank input below Select OpenAI Codex login method: rather than the two choices. Submitting it passes an empty method to the OAuth flow and produces Error: Unknown OpenAI Codex login method:.
The extension adapter should render the provided option labels and map the chosen label back to the OAuth option id (browser or device_code).
Steps to reproduce
- Use OmO Native
5.0.0-0.beta.48 (Senpi 2026.9.7-2) with no existing credentials.
- Run
/gpt-account add in an interactive terminal (also reproduced under Linux tmux with TERM=xterm-256color).
- Observe the empty field under
Select OpenAI Codex login method: and submit it.
No OAuth browser flow, device code, or token was entered during reproduction.
Expected behavior
Render Browser login (default) and Device code login (headless) and pass their ids, respectively browser and device_code, to the OAuth flow. /login → Sign in with an account → OpenAI Codex already does this correctly.
Workarounds: use that /login path, or enter browser / device_code directly into the affected field.
Version
OmO Native 5.0.0-0.beta.48; Senpi 2026.9.7-2.
Fix and verification
The fix branches on prompt.type === "select", uses the extension selector for option labels, and returns the matching option id. Manual/text prompts keep their text-input path.
Verified by a regression test covering both ids, root bun run check, and isolated tmux TUI smoke. No real authentication was performed.
What happened?
/gpt-account addsends the OpenAI Codex OAuthselectprompt through a text-input adapter. The UI renders a blank input belowSelect OpenAI Codex login method:rather than the two choices. Submitting it passes an empty method to the OAuth flow and producesError: Unknown OpenAI Codex login method:.The extension adapter should render the provided option labels and map the chosen label back to the OAuth option id (
browserordevice_code).Steps to reproduce
5.0.0-0.beta.48(Senpi2026.9.7-2) with no existing credentials./gpt-account addin an interactive terminal (also reproduced under Linux tmux withTERM=xterm-256color).Select OpenAI Codex login method:and submit it.No OAuth browser flow, device code, or token was entered during reproduction.
Expected behavior
Render
Browser login (default)andDevice code login (headless)and pass their ids, respectivelybrowseranddevice_code, to the OAuth flow./login→Sign in with an account→OpenAI Codexalready does this correctly.Workarounds: use that
/loginpath, or enterbrowser/device_codedirectly into the affected field.Version
OmO Native
5.0.0-0.beta.48; Senpi2026.9.7-2.Fix and verification
The fix branches on
prompt.type === "select", uses the extension selector for option labels, and returns the matching option id. Manual/text prompts keep their text-input path.Verified by a regression test covering both ids, root
bun run check, and isolated tmux TUI smoke. No real authentication was performed.