Skip to content

bug: /gpt-account add renders an empty OpenAI Codex method prompt #1483

Description

@eddieparc

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

  1. Use OmO Native 5.0.0-0.beta.48 (Senpi 2026.9.7-2) with no existing credentials.
  2. Run /gpt-account add in an interactive terminal (also reproduced under Linux tmux with TERM=xterm-256color).
  3. 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. /loginSign in with an accountOpenAI 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions