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
[Feature]: Separate incognito browser session per thread, so parallel agents don't share logins
#31431
I searched existing issues and discussions and did not find a duplicate.
I am describing a concrete problem or use case, not just a vague idea.
Area
Browser preview and the agent preview tools
Problem or use case
I let agents check their own changes in the browser preview. Each agent starts the app from its worktree on its own port, opens it in an incognito tab, signs in with a test account, and clicks through the change. Several threads do this at the same time.
All incognito tabs share one session, also across threads, so they share cookies. Cookies don't depend on the port, so two threads running apps on localhost can overwrite each other's session cookie:
When thread B signs in or out, thread A's tab can suddenly be signed in as B's account, or signed out, and A doesn't notice.
Against a shared staging server, A then acts as B's account and may create data under it.
Cookies also outlive the tabs: a new incognito tab still had a cookie from an app that had been open in an earlier, closed tab.
Agents can't work around this themselves. So today every check that needs signing in either risks acting as another thread's account or goes back to a human.
Steps to reproduce
Serve any page on http://localhost:47811 and on http://localhost:47812.
In thread A, open an incognito tab on the first page and run document.cookie = "probe=1".
In thread B, open an incognito tab on the second page and read document.cookie.
Expected: no probe cookie. Actual: probe=1. Local storage stays separate, as expected for different origins.
Proposed solution
Give each thread its own incognito session, whose cookies and storage no other thread sees, cleared when the thread no longer needs it. Alternatively, let preview_open ask for a fresh isolated session, or a named one that a thread's tabs can share. Playwright MCP has both: --isolated and isolatedContext.
Why this matters
Parallel agents are what T3 is built for, and the preview is how they check web apps. Without separate sessions, parallel checks that sign in aren't trustworthy.
Environment
T3 Code (Beta) 0.1.6, macOS 26.6.1, desktop app.
Related: #18004 is about choosing which profile a project uses; this is about keeping threads apart within a profile.
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.
Before submitting
Area
Browser preview and the agent preview tools
Problem or use case
I let agents check their own changes in the browser preview. Each agent starts the app from its worktree on its own port, opens it in an incognito tab, signs in with a test account, and clicks through the change. Several threads do this at the same time.
All incognito tabs share one session, also across threads, so they share cookies. Cookies don't depend on the port, so two threads running apps on
localhostcan overwrite each other's session cookie:Agents can't work around this themselves. So today every check that needs signing in either risks acting as another thread's account or goes back to a human.
Steps to reproduce
http://localhost:47811and onhttp://localhost:47812.document.cookie = "probe=1".document.cookie.Expected: no
probecookie. Actual:probe=1. Local storage stays separate, as expected for different origins.Proposed solution
Give each thread its own incognito session, whose cookies and storage no other thread sees, cleared when the thread no longer needs it. Alternatively, let
preview_openask for a fresh isolated session, or a named one that a thread's tabs can share. Playwright MCP has both:--isolatedandisolatedContext.Why this matters
Parallel agents are what T3 is built for, and the preview is how they check web apps. Without separate sessions, parallel checks that sign in aren't trustworthy.
Environment
T3 Code (Beta) 0.1.6, macOS 26.6.1, desktop app.
Related: #18004 is about choosing which profile a project uses; this is about keeping threads apart within a profile.
All reactions