Repository navigation
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
Public test Basic Auth credentials for reproduction only:
- Username:
codex - Password:
codex
What steps can reproduce the bug?
- Open Codex Desktop / Codex development environment.
- Open the in-app browser or ask Codex to access this Basic Auth protected page:
https://suhire.com/t/codex-basic-auth-test/ - Observe the Basic Auth username/password dialog.
- In the failing case, the dialog appears briefly and then disappears automatically.
- 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.
Activity
wbdb commentedon Sep 4, 2026
Same problem
sukhjindersingh commentedon Sep 10, 2026
Reproduced on macOS with Codex Desktop 26.903.71938.
Opening an HTTPS development site protected by HTTP Basic Auth in the Codex in-app browser does not show a credentials dialog. Instead, the browser renders
ERR_INVALID_AUTH_CREDENTIALSand reports that the site could not be loaded. The same site is intended to show the standard htpasswd username/password prompt.This happened after updating the app, so the problem persists in 26.903.71938.
pavelsavva commentedon Sep 12, 2026
Yup, same here. Just updated to the latest version.
cl0udres commentedon Oct 2, 2026
Confirming the same behavior on macOS with the Codex in-app browser.
When I open a private staging site protected by HTTP Basic Auth, the browser-native authentication prompt appears briefly and disappears before I can enter any credentials. The page then displays ERR_INVALID_AUTH_CREDENTIALS. I did not enter any credentials.
The same staging site is accessible in my regular Chrome session. I’m omitting the staging URL and screenshot for privacy. In my reproduction, the prompt closed immediately. I can provide the ChatGPT/Codex app and macOS versions if useful.
Could you confirm whether the in-app browser is expected to pause and let the user enter HTTP Basic Auth credentials, or whether this authentication flow is currently unsupported?
Reproduced on macOS with Codex Desktop 26.930.21537
brianyoungblood commentedon Oct 6, 2026
Saw it last week. Then again this week. Back here to +1. Reproduced on macOS with ChatGPT/Codex Desktop 26.930.61225 (build 13232).
levezaplutonica commentedon Oct 7, 2026
I can reproduce the same symptom on macOS with ChatGPT desktop app version 26.930.61225 (build 13232).
Environment
Enrolled via DEP: No;MDM enrollment: No).Reproduction
ERR_INVALID_AUTH_CREDENTIALS.This prevents me from accessing the staging site through the built-in browser.
Expected behavior
The authentication dialog should remain open until I submit credentials or explicitly cancel it.
Troubleshooting results
chrome://policyin the built-in browser shows “No policies set” in all displayed sections.During an earlier agent-driven navigation attempt, the tool also reported:
“The admin-enforced policy could not be verified.”
I do not know whether that message is related to the manually observed dialog failure.
I have not inspected the server’s redirect chain or
WWW-Authenticateheaders, and have not tested the public reproduction URL from the original report. This is an independent reproduction on my own staging site; I cannot confirm the underlying cause.Susuper2019 commentedon Oct 8, 2026
I’m experiencing the same issue on macOS. The HTTP Basic Auth dialog briefly appears and then disappears in the Codex in-app browser, preventing me from completing authentication.
The same site works in standalone Chrome with valid credentials. The Codex browser tool reports net::ERR_INVALID_AUTH_CREDENTIALS.
This blocks access to our Basic Auth-protected development Flink dashboard.
Please let me know if additional diagnostics would help.
agoodier commentedon Oct 8, 2026
Additional occurrence on Windows, observed 8 October 2026 (Australia/Brisbane). The installed desktop app version was not captured.
The user opened an HTTPS staging site protected by HTTP Basic authentication in Codex's visible built-in browser, specifically to use page annotations. They report that the username/password box appears and immediately disappears before they can enter either field. This blocks both access to the staging site and the annotation workflow.
Browser Use navigation returned net::ERR_BLOCKED_BY_CLIENT; a separate DevTools-controlled browser navigation returned net::ERR_INVALID_AUTH_CREDENTIALS. Supplying a valid Basic Authorization header in the separate controlled browser successfully loaded the same site's page. That confirmed the supplied credentials were accepted there, but did not authenticate the visible annotation tab. No request-header capture from the visible tab was available, so a header conflict or the precise cause of prompt dismissal has not been established.
Expected: the HTTP authentication dialog stays open until submission or explicit cancellation, and successful authentication loads the page in the visible built-in browser with annotations available.
Private staging URL, username, password, Authorization value, session transcript, and raw logs are deliberately omitted. Please track this as another affected Windows annotation workflow alongside #43032 and #45850.
Susuper2019 commentedon Oct 10, 2026
Temporary workaround: Include the Basic Auth credentials in the URL:
https://<username>:<password>@<host>:<port>/<path>This avoids interacting with the disappearing authentication dialog while still authenticating with the server. It does not disable or bypass Basic Auth itself.
jlunse commentedon Oct 17, 2026
Also reproduced on Linux with app version 26.1013.40934
(build 20770), observed on October 17, 2026.
Opening an HTTPS staging site protected by nginx HTTP Basic Auth
briefly displays the native username/password dialog. It closes
before I can enter credentials, and the browser displays:
ERR_INVALID_AUTH_CREDENTIALS
The same site works in standalone Google Chrome on the same computer.
Unauthenticated HTTPS checks return HTTP 401 with WWW-Authenticate: Basic.
Restarting and updating from 26.1007.21434 did not resolve the issue.
After refreshing APT package lists, 26.1013.40934 is the newest version
available in the configured OpenAI stable Linux repository.
Expected: the dialog remains open until credentials are submitted
or the user explicitly cancels.
Private URLs and credentials are intentionally omitted.
The internal cause has not been established.
wbdb commentedon Oct 19, 2026
@chess-oai Fixing this issue would be a godsend for working with staging systems :).
Temporary workaround: Using vercel agent browser instead of in-app browser
rhtyaduvanshi commentedon Oct 27, 2026
@Anatolt Iss the issue resolved or still you facing this issue,