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
Website sign-in sessions don't persist in the built-in browser and keep logging out #24686
When I sign in to websites inside T3 Code (Discord, X/Twitter, various forums), the login doesn't stay for long. After a short while, or after restarting T3, I'm logged out again and have to sign in from scratch. It happens on every site I've tried, so it looks like cookies or session storage aren't being kept.
Expected: website logins stay saved like they do in a normal browser.
Tried this on current main (f3b058c) with the desktop app (Linux build) and a test site that sets a 30-day login cookie and a localStorage token:
Signed in inside the built-in browser (default profile), waited about a minute, reloaded: still signed in.
Quit T3 Code normally and relaunched, both a minute after signing in and a few seconds after: still signed in, cookie and localStorage both kept.
Force-killed the app a few seconds after signing in: only that newest sign-in was lost, which is standard Chromium behaviour (cookies are written to disk in batches, roughly every 30 seconds).
So the browser's storage persists in this setup, and the difference is likely something specific to yours. Could you share:
Which browser profile the tab uses (shown as "Profile: …" in the browser's "…" menu, or chosen with "Open browser in a profile"): Default, a named profile, or Incognito. Incognito never keeps logins.
Whether you get logged out while T3 Code stays open, and roughly after how long, or only after restarting it.
How T3 Code usually closes: the window's close button, Quit, an update install, or a Windows shutdown/restart.
Whether your threads run on more than one environment (for example the local Windows backend and a WSL backend or a remote machine). Each environment keeps its own browser logins.
The desktop log from right after it happens: %USERPROFILE%\.t3\userdata\logs.
I reproduced the restart case on macOS 27.2 with Electron 44.10.1 in the Default profile. A local test page set two HttpOnly cookies: a session cookie with no expiry and a 30-day control. I checked both before quitting, then quit T3 Code normally, relaunched, and opened the read-only check page again.
Before quit on baseline cd87cce900: both cookies present.
After baseline relaunch: session cookie absent, 30-day control present.
After relaunch on my experimental build: both present. Clear cookies then removed both.
This reproduces the restart case on macOS. The Windows report and logouts while T3 stays open still need separate reproduction. Would a maintainer approve a PR to restore session cookies on normal restart for saved desktop profiles, with OS-backed encryption and a setting to opt out? Incognito would stay ephemeral. Would you prefer that setting to default off?
Activity
juliusmarminge commentedon Oct 27, 2026
Tried this on current
main(f3b058c) with the desktop app (Linux build) and a test site that sets a 30-day login cookie and a localStorage token:So the browser's storage persists in this setup, and the difference is likely something specific to yours. Could you share:
%USERPROFILE%\.t3\userdata\logs.binjamshid commentedon Nov 9, 2026
I reproduced the restart case on macOS 27.2 with Electron 44.10.1 in the Default profile. A local test page set two HttpOnly cookies: a session cookie with no expiry and a 30-day control. I checked both before quitting, then quit T3 Code normally, relaunched, and opened the read-only check page again.
cd87cce900: both cookies present.This reproduces the restart case on macOS. The Windows report and logouts while T3 stays open still need separate reproduction. Would a maintainer approve a PR to restore session cookies on normal restart for saved desktop profiles, with OS-backed encryption and a setting to opt out? Incognito would stay ephemeral. Would you prefer that setting to default off?
Before baseline quit
After baseline relaunch
After experimental build relaunch