openai / openai/codex

Codex in-app browser Basic Auth dialog briefly appears and then disappears

Open
#40,091 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

app auth browser bug
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using?

ChatGPT/Codex macOS app 26.818.41509 (build 6962)

What subscription do you have?

chagpt pro (25$)

What platform is your computer?

macOS 15.7.4 (build 24G517), arm64

What issue are you seeing?

When opening a website protected with HTTP Basic Auth in the Codex development environment / in-app browser, the native username/password prompt sometimes appears only for a second and then immediately disappears.

After the prompt disappears, there is no visible place to enter the Basic Auth username and password. Codex then treats the site as unavailable, even though the site is reachable and the credentials are valid.

This is intermittent: sometimes the Basic Auth prompt stays visible and can be used normally, but often it flashes briefly and disappears before credentials can be entered.

Video showing the issue:
https://www.youtube.com/watch?v=3WlfV0gTmR4

Test URL:
https://suhire.com/t/codex-basic-auth-test/

Public test Basic Auth credentials for reproduction only:

  • Username: codex
  • Password: codex
What steps can reproduce the bug?
  1. Open Codex Desktop / Codex development environment.
  2. Open the in-app browser or ask Codex to access this Basic Auth protected page:
    https://suhire.com/t/codex-basic-auth-test/
  3. Observe the Basic Auth username/password dialog.
  4. In the failing case, the dialog appears briefly and then disappears automatically.
  5. Codex reports that the site is unavailable, and the user has no way to enter the credentials.
What is the expected behavior?

The Basic Auth prompt should remain visible until the user either enters credentials or cancels it.

Alternatively, Codex should provide a stable way to enter Basic Auth credentials for the in-app browser / browser tool.

What is the actual behavior?

The Basic Auth prompt often disappears immediately after appearing. The user cannot enter credentials, and Codex concludes that the page is unavailable.

Additional information

Codex CLI installed locally: 0.147.0

This is especially confusing because Basic Auth is often recommended by ChatGPT/Codex as a simple way to protect staging or test websites. If Codex cannot reliably handle Basic Auth prompts, that recommendation leads to a broken development workflow.

The issue appears intermittent: sometimes the prompt stays visible, but often it disappears too quickly to use.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided test URL and credentials in the Codex in-app browser, then trace the Basic Auth prompt handling. Done means the username/password dialog remains available until the user submits credentials or cancels, including for the intermittent case described.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.