t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Website sign-in sessions don't persist in the built-in browser and keep logging out

Open ClipyMaster opened this issue 1 month ago • 2 comments

Version: T3 Code (Beta) 0.1.2 on Windows

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.

ClipyMaster avatar Oct 25 '26 02:10 ClipyMaster

Tried this on current main (f3b058cd6a) 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:

  1. 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.
  2. Whether you get logged out while T3 Code stays open, and roughly after how long, or only after restarting it.
  3. How T3 Code usually closes: the window's close button, Quit, an update install, or a Windows shutdown/restart.
  4. 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.
  5. The desktop log from right after it happens: %USERPROFILE%\.t3\userdata\logs.

juliusmarminge avatar Oct 27 '26 08:10 juliusmarminge

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?

Before baseline quit

Before baseline quit

After baseline relaunch

After baseline relaunch

After experimental build relaunch

After experimental build relaunch

binjamshid avatar Nov 09 '26 14:11 binjamshid