Skip to content

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

Open

Description

@Anatolt

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.

Activity

  1. added
    bug
    app
    auth
    on Aug 22, 2026
  2. wbdb commented on Sep 4, 2026

    @wbdb

    Same problem

    Version 26.901.31953
    Released on September 4, 2026
    Windows 11 Pro / WSL
    
  3. sukhjindersingh commented on Sep 10, 2026

    @sukhjindersingh

    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_CREDENTIALS and 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.

  4. pavelsavva commented on Sep 12, 2026

    @pavelsavva

    Yup, same here. Just updated to the latest version.

  5. cl0udres commented on Oct 2, 2026

    @cl0udres

    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

  6. brianyoungblood commented on Oct 6, 2026

    @brianyoungblood

    Saw it last week. Then again this week. Back here to +1. Reproduced on macOS with ChatGPT/Codex Desktop 26.930.61225 (build 13232).

  7. levezaplutonica commented on Oct 7, 2026

    @levezaplutonica

    I can reproduce the same symptom on macOS with ChatGPT desktop app version 26.930.61225 (build 13232).

    Environment

    • macOS 27.0.1 (build 26A434).
    • Team workspace.
    • No MDM enrollment (Enrolled via DEP: No; MDM enrollment: No).
    • Observed on October 6–7, 2026.

    Reproduction

    1. Open an HTTPS staging website protected by HTTP Basic Auth in the built-in browser.
    2. The native username/password dialog appears.
    3. It closes automatically before I can enter credentials, without me submitting or cancelling it.
    4. The tab displays “This site can’t be reached” with 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

    • Clearing the built-in browser’s browsing data and restarting the application did not resolve the issue.
    • Manually opening chrome://policy in the built-in browser shows “No policies set” in all displayed sections.
    • The site has an “Always allow” permission in the application.
    • A separate Chrome extension detection problem was resolved, but the built-in browser authentication dialog still closes.

    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-Authenticate headers, 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.

  8. Susuper2019 commented on Oct 8, 2026

    @Susuper2019

    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.

    • macos version: 27.0 (26A428)
    • Codex app version: 26.928.20755 (build 12246)
      Please let me know if additional diagnostics would help.
  9. agoodier commented on Oct 8, 2026

    @agoodier

    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.

  10. Susuper2019 commented on Oct 10, 2026

    @Susuper2019

    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.

    • macos version: 27.0 (26A428)
    • Codex app version: 26.928.20755 (build 12246)
      Please let me know if additional diagnostics would help.

    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.

    • macos version: 27.0 (26A428)
    • Codex app version: 26.928.20755 (build 12246)
      Please let me know if additional diagnostics would help.

    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.

  11. jlunse commented on Oct 17, 2026

    @jlunse

    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.

  12. wbdb commented on Oct 19, 2026

    @wbdb

    @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

  13. rhtyaduvanshi commented on Oct 27, 2026

    @rhtyaduvanshi

    @Anatolt Iss the issue resolved or still you facing this issue,

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

    appauthbrowserbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions