GeezerVison is showing github.com — fix(desktop): improve browser cookie import detection by UtkarshUsername · Pull Request #7323 · pingdotgg/t3code
Conversation
Stacked on top of #7262
What Changed
Fixes several browser cookie import bugs.
- Chromium 96+ moved cookies to
Network/Cookies; import now checks both Cookies and Network/Cookies so newer Chrome/Edge/Brave/Vivaldi/Opera installs are found
- Firefox on Windows holds
parent.lock as a regular file that persists after exit; running-check now probes the actual lock (fs.open with r+) instead of just existence, and stale profiles are filtered out
- All Chromium forks are now marked unsupported on Windows: since Chrome 127 their cookies are App-Bound Encrypted to the browser's own identity, so no other process can read them (same as Arc/Helium); macOS and Linux imports still work
- Hide unsupported browsers in the dropdown
Why
I have Edge and Chrome installed, but they didn't show up
And clicking on Firefox, I got "Quit Firefox to import / Firefox is open, so its cookies can’t be read yet. Quit it, then continue." But firefox is not open. I checked and it's also not running in the background. Any firefox-based browser is also not open.
Checklist
- This PR is small and focused
- I explained what changed and why
Note Medium Risk
Touches filesystem probing, profile discovery, and import error semantics across desktop browser import; behavior changes are intentional but affect all import flows on macOS/Linux and Firefox on Windows.
Overview
Fixes browser cookie import so installed browsers show up reliably and import uses the right cookie DB path.
Chromium cookie locations: Replaces a single Cookies path with cookieDatabaseCandidatePaths, preferring Network/Cookies (Chromium 96+) and falling back to legacy Cookies. Profile listing, install detection, cookie counts, and importCookies all probe candidates with stat (not access) so Safari/TCC behavior stays correct. If a listed profile loses its DB before import, the failure is readFailed instead of unsupportedPlatform.
Windows Chromium: Drops win32 from all Chromium fork definitions because Chrome 127+ app-bound encryption blocks third-party reads. The integrations Import from menu also hides unsupportedPlatform sources, same as not installed.
Firefox: Profile discovery skips profiles with no cookies.sqlite. On Windows, isLockHeld tries opening parent.lock with write access so stale lock files no longer mark Firefox as running when it is quit.
Reviewed by Cursor Bugbot for commit f9db7a7. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix browser cookie import to detect both legacy and Network/Cookies paths
- Replaces single
cookieDatabasePath with cookieDatabaseCandidatePaths, returning an ordered list of candidates (e.g. Network/Cookies before Cookies for Chromium) so imports work for Chromium 127+ and legacy profiles alike.
- Adds a stat-based probe in
importCookies to find the first existing candidate path; missing databases now report readFailed instead of unsupportedPlatform.
- Introduces
isLockHeld to distinguish active from stale parent.lock files on Windows, fixing false "Firefox is running" detection.
- Removes Windows (win32) support from all Chromium-based sources in
Sources.ts; the settings UI in IntegrationsSettings.tsx now hides sources marked unsupportedPlatform.
- Profile listings for Firefox and Chromium now filter out profiles with no valid cookie database, so empty or uninitialized profiles are no longer shown.
Macroscope summarized f9db7a7.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…eck on Windows
Chromium 127+ moved cookies to Network/Cookies. Firefox on Windows uses
a regular file for parent.lock that persists after exit, so stat() always
finds it. Chrome/Edge were hidden from the import menu and Firefox was
falsely blocked as running.
- Add cookieDatabaseCandidatePaths() checking both Cookies and Network/Cookies
- Add isLockHeld() that uses fs.open(r+) on Windows to detect actual locks
- Update isSourceInstalled, countProfileCookies, listSourceProfiles fallback,
and the import flow to iterate all candidate paths
- Add tests for candidate paths, Network/Cookies detection, and stale lock files
coderabbitai
Bot
commented
Aug 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0153dab7-7162-412e-be46-5b1ff86ab4b4
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Effect service conventions review: three issues in the changed scope (hidden node:fs dependency inside Sources.ts, a leaked FileSystem requirement in BrowserImport.importCookies, and a retained compatibility shim). Details inline.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
UtkarshUsername
changed the title
fix(desktop): detect Chromium 127+ cookies and fix Firefox running check on Windows
fix(desktop): detect Chromium 96+ cookies and fix Firefox running check on Windows
Aug 17, 2026
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — This PR removes Windows Chromium browser support entirely and substantially changes how browsers and profiles are detected for cookie import. These are significant runtime behavior changes to user-facing import functionality that warrant careful review.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
UtkarshUsername
changed the title
fix(desktop): detect Chromium 96+ cookies and fix Firefox running check on Windows
fix(desktop): improve browser cookie import detection
Aug 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One convention violation found: the new cookie-database probe in BrowserImport.importCookies bypasses the Effect environment with require("node:fs") + statSync.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 06cc89b. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|