[Bug]: Built-in browser has no usable HTTP Basic Auth username/password prompt#17114

openedOct 8, 2026byMmaroun2

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure — built-in browser / preview; affected runtime (desktop-hosted or environment-hosted) has not been identified.

Summary

The built-in browser does not show a usable username/password prompt for a page protected by HTTP Basic Authentication. This prevents entering credentials and accessing the protected page.

This report describes the browser-native HTTP Basic Auth credential dialog, rather than a website login form or an OAuth window.open() popup.

Steps to reproduce

  1. Have an HTTP endpoint protected by Basic Authentication, returning 401 Unauthorized with WWW-Authenticate: Basic realm="test" until valid credentials are supplied.
  2. Open that endpoint in T3 Code's built-in browser.
  3. Attempt to enter the username and password through the browser's authentication prompt.

These are suggested minimal reproduction steps for investigation. The reported symptom comes from using a Basic Auth-protected page; an isolated test endpoint has not been run for this report.

Expected behavior

The built-in browser presents a username/password dialog when the server requests HTTP Basic Authentication. Submitting valid credentials retries the request and loads the protected page. The user can also cancel the prompt.

Actual behavior

The username/password popup does not work in the built-in browser: no usable credential prompt is available, so authentication cannot be completed. The exact page/error state and whether the prompt is absent versus inaccessible have not been captured.

Impact

Blocks access to Basic Auth-protected pages through the built-in browser.

Version or commit

Not captured for the affected session.

Environment

T3 Code built-in browser. Affected OS, app version, and browser runtime were not captured.

Logs or stack traces

Not captured. No root cause has been established.

Workaround

No verified workaround reported.

  • #6561 (closed) reports Firebase OAuth popup blocking, which is a different authentication mechanism.
  • #14452 (open) reports window.open("about:blank") breaking MSAL login, also a different mechanism.

Open issues were searched for Basic Auth, Basic Authentication, WWW-Authenticate, browser authentication/credentials, and preview authentication/401 errors. No matching open report was found.

Confirmed the symptom in the running Linux environment-hosted built-in browser, in both Default and Incognito profiles: navigating to a local endpoint returning 401 with WWW-Authenticate: Basic realm="test" displays only Basic Auth required. Browser status reports no pending dialog, and the accessibility snapshot contains no interactive controls. A curl control gets 401 without credentials and 200 with valid test credentials.

No matching duplicate found in 19 pages of open issues. Current fetched main is b5a226e49c; this reproduction used the running app, not a fresh build of that commit. Desktop/Electron remains unverified.

Leaving open for maintainer handling: implementing the missing challenge/response prompt requires authentication and credential handling, outside the automated triage fix scope. This is a usability bug; the report does not describe an exploitable vulnerability.

Reproduced on fresh main a50cd989ae in the Linux environment-hosted web Browser panel (vp run dev, isolated worktree state). Opened a local endpoint returning 401 with WWW-Authenticate: Basic realm="test": the panel displayed “Basic Auth required” with no username/password controls. Curl returned 401 without credentials and 200 with the fixture credentials. Default and Incognito also reproduced in the running browser. Desktop/Electron is unverified.

Synced from GitHub

@juliusmarminge This is blocking access to one of my Auth-protected dashboards in T3 Code’s built-in browser, forcing me to switch browsers to continue working. It adds friction to a regular workflow. Would appreciate prioritising the fix.

Synced from GitHub

Reproduced in the desktop app on Windows and Linux, on the current nightly (0.1.13-nightly.20261125.5258), through the normal UI.

SetupHow the tab was openedCredential promptRequests the endpoint saw
Windows 11 desktop app, local thread+ → Browser, typed the URL (also tried preview_open)none, and no other windowone GET without credentials (plus favicon), no retry
Linux (Ubuntu 24.04) desktop app, "No project" thread on the same machine+ → Browser → Default, typed the URLnone, and no other windowone GET without credentials (plus favicon), no retry
Linux desktop app, thread on a remote environment (the Windows machine)+ → Browser → Default, typed the URLnone, and no other windowone GET without credentials (plus favicon), no retry; the request arrived through the desktop's tunnel
Linux, agent-openedpreview_opennoneone GET without credentials (plus favicon), no retry

For these tabs preview_status reports dialog: null, and t3_preview_list reports runtime: "server".

The test endpoint was a local Node server returning 401 with WWW-Authenticate: Basic realm="test" unless the request sends tester:secret. A curl control got 401 without credentials and 200 with them. From the Windows app, the same happens with an HTTPS Basic Auth endpoint on a LAN host, in both the Default and Incognito profiles.

Where these pages actually load. In the desktop app, Browser tabs are loaded by the desktop app itself, even the ones t3_preview_list reports as runtime: "server":

  • For each test, the desktop trace shows desktop.ipc.preview.createTab → PreviewManager.registerWebview → PreviewManager.navigate.
  • The request comes from the desktop app's Electron network service, and there's no separate browser process.
  • The server drives the tab over the desktop CDP relay (DesktopBrowserChannel → connectDesktopPage → chromium.connectOverCDP).
  • Neither trace has any login or auth span.

The evidence on #23816 and #35046 comes from a server-launched Chromium with no desktop attached. So it's worth confirming that Fetch.enable({ handleAuthRequests: true }) and Fetch.authRequired make it through the desktop CDP relay. If they don't, the desktop app needs an Electron login handler: Electron cancels any auth challenge that nothing answers, which matches what we see here.

The shipped bundle has no Fetch.authRequired handling of its own; the only copy is in vendored Playwright. Both PRs currently conflict with main.

Workaround: putting the credentials in the URL (http://tester:secret@host:port/) works in every setup above. Chromium retries with the credentials and the page loads.

Two caveats:

  • preview_open returns the credential-bearing URL in its url field, both for the tab and in its tab list, so the password ends up in the agent transcript. That seems relevant to the credential-redaction concern raised on both PRs.
  • On Linux, the desktop address bar keeps showing http://tester:secret@… in plain text after the page loads.