You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use my browser sign-ins in a remote environment's browser (share a profile's logins across machines)
#33055
I sign in to everything once, in a browser on my main computer, which is a Mac running the desktop app. My agents mostly run in a remote Linux environment, and its browser has none of those logins. So whenever a task needs a signed-in site (testing an app behind a login, checking a dashboard, saving a draft on X), the agent stops at a login page.
Browser profiles look like they should cover this, but they only cover one machine:
Profiles are reported by the client, so "Work" exists in both places with the same id. Each machine still keeps its own cookie jar, though. Tabs on my Mac use the desktop's Electron partition. Agent tabs in the remote environment use that server's persistent profile (server-browser/profiles/<profileId>).
Import from browser only fills the desktop's own partition (resolvePartitionScope in apps/desktop/src/ipc/methods/preview.ts), and the wizard always targets the primary environment.
Open in 's browser reopens the URL and profile, but none of its cookies.
The workaround is to have an agent open the tab, take control of the stream, and sign in again. That's per site, per environment, and again after each expiry. Some sites refuse that browser outright: Google (#20867), Cloudflare (#24256), and the data points in #17465. #27035 shows the same split on WSL.
Proposal
The goal is for a browser profile's sign-ins to be usable in any environment I'm connected to. The smallest step toward that is a user-triggered copy. Everything below reuses what exists:
Choosing where cookies go. Add a destination picker to Settings → Browser profiles → Import from . It lists this computer plus connected environments whose server reports capabilities.serverBrowser.
Copying an existing T3 profile. Add a profile action, "Copy sign-ins to ". The desktop reads the cookies it already holds in that profile's partition.
One new server RPC, a sibling of preview.clearProfile. It takes the selected cookies over the authenticated connection and adds them to that profile's persistent context (BrowserContext.addCookies). It is authorized like preview.clearProfile (AuthPreviewOperateScope), and the server checks the browserCookieImport managed policy as the desktop already does.
The existing per-site picker limits what gets sent. Defaults don't change, and nothing leaves the desktop unless the user runs a copy and picks the environment.
Out of scope for now: automatic or ongoing sync (re-running the copy refreshes it), and filling in passwords, which is #7346's credential-profile idea and complements this.
Would maintainers accept this direction, and this first scope? If yes, I can follow up with a focused PR: tests for the RPC, the policy check, and the picker, plus before/after screenshots. If you'd rather go straight to synced profiles, I'd like to know the shape you want.
Seen on 0.1.8-nightly.20261107, macOS desktop client, Linux server.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
I sign in to everything once, in a browser on my main computer, which is a Mac running the desktop app. My agents mostly run in a remote Linux environment, and its browser has none of those logins. So whenever a task needs a signed-in site (testing an app behind a login, checking a dashboard, saving a draft on X), the agent stops at a login page.
Browser profiles look like they should cover this, but they only cover one machine:
server-browser/profiles/<profileId>).resolvePartitionScopeinapps/desktop/src/ipc/methods/preview.ts), and the wizard always targets the primary environment.The workaround is to have an agent open the tab, take control of the stream, and sign in again. That's per site, per environment, and again after each expiry. Some sites refuse that browser outright: Google (#20867), Cloudflare (#24256), and the data points in #17465. #27035 shows the same split on WSL.
Proposal
The goal is for a browser profile's sign-ins to be usable in any environment I'm connected to. The smallest step toward that is a user-triggered copy. Everything below reuses what exists:
capabilities.serverBrowser.preview.clearProfile. It takes the selected cookies over the authenticated connection and adds them to that profile's persistent context (BrowserContext.addCookies). It is authorized likepreview.clearProfile(AuthPreviewOperateScope), and the server checks thebrowserCookieImportmanaged policy as the desktop already does.The existing per-site picker limits what gets sent. Defaults don't change, and nothing leaves the desktop unless the user runs a copy and picks the environment.
Out of scope for now: automatic or ongoing sync (re-running the copy refreshes it), and filling in passwords, which is #7346's credential-profile idea and complements this.
Would maintainers accept this direction, and this first scope? If yes, I can follow up with a focused PR: tests for the RPC, the policy check, and the picker, plus before/after screenshots. If you'd rather go straight to synced profiles, I'd like to know the shape you want.
Seen on
0.1.8-nightly.20261107, macOS desktop client, Linux server.All reactions