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
apps/web
Steps to reproduce
written by Claude Opus 5.5 in pi on behalf of Igor, pi session
01a208ec-02d9-7464-a7be-579456cbb97c(no public session link).
- Run T3 Code as the background service (
com.t3tools.t3code.service,t3 serve), so the server keeps running when the desktop app closes. - In the desktop app, turn off the app's own local environment and connect to that service.
- Open Settings → Browser → Browser profiles → Add profile.
- Look at the Import from group.
Expected behavior
The installed browsers under Import from can be selected, and importing cookies works, since the desktop app is connected to this machine's server.
Actual behavior
Every browser under Import from (Chrome, Helium, Safari, Firefox here) is disabled, and the menu ends with "Connect to an environment to import cookies." The service is connected and everything else works.
Diagnosis, from upstream main:
BrowserProfilesSetting(apps/web/src/components/settings/IntegrationsSettings.tsx) disables the import sources whenusePrimaryEnvironment()is null.primaryEnvironmentIdAtom(apps/web/src/state/primaryEnvironment.ts) only matches aPrimaryConnectionTarget, the backend the desktop app starts itself. A desktop app that connects to the same machine's service never has one.- This is the same cause as Sidebar folder drop always says "This computer's server is not connected yet" when the desktop app uses a separate t3 serve instead of its own backend #38708 (sidebar folder drop) and Sharing & access shows "No environment selected" when the desktop app connects to a background service with Local environment off #26420 (Sharing & access). fix(web): dropped folders open on this computer's server when the desktop app's own environment is off #38722 added
localEnvironmentIdAtom("the primary, else a connection to the service sharing the app's T3 home") for this case, but browser import still reads the primary. - The import reads the source browser in the desktop process, and the environment ID only scopes the target profile, so this machine's service should work as the target.
cookieImportDenialreadsusePrimaryManagedPolicy(), so it may need the same fallback.
Related: #29156 moves this check into a shared hook for a toolbar entry point, so it would carry the same gate there. #37664 covers how these profile settings are labelled, not this gate.
Impact
Minor bug or occasional failure
Version or commit
0.1.12-nightly.20261123
Environment
macOS (Darwin 27.2, arm64), T3 Code (Nightly) desktop app, background service on the same machine
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Turn the desktop app's own local environment on, import, then turn it off again. I haven't confirmed that the imported profile survives switching back.
Activity
2SinceJuly commentedon Nov 23, 2026
Closing the loop: #41525 already fixes this (this machine's environment when the app's own backend is off), so I dropped the duplicate work I had started rather than open a competing PR.