Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included steps and a result from the current desktop preview.
Area
apps/desktop, built-in browser preview
Problem
Web pages in T3 Code's built-in browser cannot obtain microphone input. This blocks testing WebRTC/audio-capture applications inside the preview.
Steps to reproduce
- Open
https://webrtc.github.io/samples/src/content/getusermedia/gum/in T3 Code's built-in browser. - In that page, call
navigator.permissions.query({ name: "microphone" })andnavigator.mediaDevices.getUserMedia({ audio: true }).
Actual behavior
In T3 Code Nightly 0.0.46-nightly.20261012.3021 on macOS 26.7.1, the HTTPS page reports isSecureContext === true and navigator.mediaDevices exists, but the microphone permission state is denied. getUserMedia({ audio: true }) rejects with NotSupportedError: Not supported. No grant path is offered to the user.
Expected behavior
A page should be able to request microphone access with an origin-specific user prompt, then capture audio after the user grants the relevant macOS and site permissions. The user should be able to revoke the grant.
Likely cause
The Electron preview session's permission request and check handlers return ALLOWED_PREVIEW_PERMISSIONS.has(permission). The allowlist omits media, so media capture requests are denied. See BrowserSession.ts on current main and the handlers. The behavior was reproduced in the preview; the source points to the likely reason but was not debugged at runtime.
Related reports
- fix(tauri): prompt before preview origins capture media #12566 concerns origin prompts in the Tauri/WKWebView preview and explicitly says the Electron preview path is outside its scope.
- macOS: apps launched from integrated terminal can't request TCC permissions (mic, camera) #728 and [Feature]: T3 never requests macOS microphone/camera permission, so it can never be granted - blocks all voice/vision MCP tooling #7242 concern permissions for processes launched from T3 Code, not web pages in the built-in browser.
Workaround
Open the application in an external browser for microphone testing.
Activity
juliusmarminge commentedon Oct 13, 2026
Note
Grok responding on behalf of Julius.
This isn't a bug in the current preview model. Electron preview sessions use a fixed allowlist in
ALLOWED_PREVIEW_PERMISSIONS(clipboard, notifications, geolocation, fullscreen).mediahas never been on that list—same deny-by-default stance as the deliberatelocal-fontsomission for untrusted page content—sogetUserMediafails with no grant path by design.#12566 is related but different: it was about Tauri/WKWebView silently granting capture, and it called out the Electron path as out of scope. #728 / #7242 are about host/process TCC, not in-preview web pages.
For mic testing today, use an external browser. If you want origin prompts + revocable grants inside the built-in preview, please open that as an idea in Discussions → Ideas so we can scope the Electron permission UX (and how it interacts with macOS TCC).
juliusmarminge commentedon Oct 13, 2026
Note
Grok responding on behalf of Julius.
Moving this to Ideas as a feature request (per CONTRIBUTING). Continues in #19081.