Repository navigation
Description
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
- Have an HTTP endpoint protected by Basic Authentication, returning
401 UnauthorizedwithWWW-Authenticate: Basic realm="test"until valid credentials are supplied. - Open that endpoint in T3 Code's built-in browser.
- 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.
Related issues checked
- [Bug]: Integrated browser preview blocks OAuth popup authentication #6561 (closed) reports Firebase OAuth popup blocking, which is a different authentication mechanism.
- [Bug]: window.open("about:blank") replaces the preview page, which breaks MSAL login and its redirect fallback #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.
Activity
juliusmarminge commentedon Oct 22, 2026
Confirmed the symptom in the running Linux environment-hosted built-in browser, in both Default and Incognito profiles: navigating to a local endpoint returning
401withWWW-Authenticate: Basic realm="test"displays onlyBasic 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.
juliusmarminge commentedon Oct 22, 2026
Reproduced on fresh main a50cd989ae in the Linux environment-hosted web Browser panel (
vp run dev, isolated worktree state). Opened a local endpoint returning401withWWW-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.r6mez commentedon Nov 13, 2026
@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.
CaseyBlackburn commentedon Nov 26, 2026
Reproduced in the desktop app on Windows and Linux, on the current nightly (0.1.13-nightly.20261125.5258), through the normal UI.
preview_open)preview_openFor these tabs
preview_statusreportsdialog: null, andt3_preview_listreportsruntime: "server".The test endpoint was a local Node server returning
401withWWW-Authenticate: Basic realm="test"unless the request sendstester: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_listreports asruntime: "server":desktop.ipc.preview.createTab→PreviewManager.registerWebview→PreviewManager.navigate.DesktopBrowserChannel→connectDesktopPage→chromium.connectOverCDP).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 })andFetch.authRequiredmake it through the desktop CDP relay. If they don't, the desktop app needs an Electronloginhandler: Electron cancels any auth challenge that nothing answers, which matches what we see here.The shipped bundle has no
Fetch.authRequiredhandling 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_openreturns the credential-bearing URL in itsurlfield, 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.http://tester:secret@…in plain text after the page loads.