GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): improve browser cookie import detection by UtkarshUsername · Pull Request #7323 · pingdotgg/t3code

Conversation

@UtkarshUsername

@UtkarshUsername UtkarshUsername commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@UtkarshUsername
fix(desktop): detect Chromium 127+ cookies and fix Firefox running ch…
e070e4f
…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
@UtkarshUsername
UtkarshUsername marked this pull request as ready for review August 17, 2026 12:53
@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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:

  • 🔍 Trigger review

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Aug 17, 2026
@UtkarshUsername
UtkarshUsername marked this pull request as draft August 17, 2026 12:54
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 17, 2026
View reviewed changes
Comment thread apps/desktop/src/preview/BrowserImport/Sources.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/desktop/src/preview/BrowserImport/Sources.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 17, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread apps/desktop/src/preview/BrowserImport/Sources.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/desktop/src/preview/BrowserImport/Sources.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/desktop/src/preview/BrowserImport/BrowserImport.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@UtkarshUsername 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
cursor[bot]
cursor Bot reviewed Aug 17, 2026
View reviewed changes
Comment thread apps/desktop/src/preview/BrowserImport/BrowserImport.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

UtkarshUsername added 4 commits August 17, 2026 20:34
@UtkarshUsername
fix(desktop): filter empty Firefox profiles and report read failures …
4594b27
…honestly
@UtkarshUsername
fix(desktop): detect running Chromium on Windows via its lockfile
2cbb9a6
@UtkarshUsername
fix(desktop): correct Network/Cookies version comment
3abd4ff
@UtkarshUsername
fix(desktop): mark all Chromium forks unsupported on Windows
2ba6193
@UtkarshUsername 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
UtkarshUsername added 3 commits August 17, 2026 23:03
@UtkarshUsername
ci: force rerun
fe48ee8
@UtkarshUsername
ci: force rerun
2403cfc
@UtkarshUsername
fix(desktop): prefer Network/Cookies, drop legacy path shim, use File…
5284330
…System for lock probe
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 17, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread apps/desktop/src/preview/BrowserImport/BrowserImport.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@UtkarshUsername
fix(desktop): resolve cookie database path through the FileSystem ser…
06cc89b
…vice
@UtkarshUsername
UtkarshUsername marked this pull request as ready for review August 17, 2026 19:02
cursor[bot]
cursor Bot reviewed Aug 17, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Fix All in Cursor

❌ 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.

All reactions
Comment thread apps/desktop/src/preview/BrowserImport/BrowserImport.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/desktop/src/preview/BrowserImport/Sources.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

UtkarshUsername added 2 commits August 18, 2026 01:09
@UtkarshUsername
fix(desktop): align import probe with listing and filter empty Firefo…
a651146
…x scan profiles
@UtkarshUsername
fix(web): hide unsupported browsers from the import menu
f9db7a7
@juliusmarminge
juliusmarminge merged commit d7ea73a into pingdotgg:browser-import-safari Aug 18, 2026
19 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@UtkarshUsername
UtkarshUsername deleted the fix/browser-import-windows branch August 18, 2026 09:47
juliusmarminge pushed a commit that referenced this pull request Aug 28, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
0895327
juliusmarminge pushed a commit that referenced this pull request Aug 28, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
ab6da75
juliusmarminge pushed a commit that referenced this pull request Aug 28, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
1453d76
juliusmarminge pushed a commit that referenced this pull request Aug 29, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
fb0332f
juliusmarminge pushed a commit that referenced this pull request Sep 1, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
2000dd4
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
dc28d1a
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
e11ca47
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
c0c5b6f
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
73ea668
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
383f29c
juliusmarminge pushed a commit that referenced this pull request Sep 2, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
c33acb3
juliusmarminge pushed a commit that referenced this pull request Sep 3, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
75a1a5f
juliusmarminge pushed a commit that referenced this pull request Sep 3, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
c0c0332
juliusmarminge pushed a commit that referenced this pull request Sep 3, 2026
@UtkarshUsername @juliusmarminge
fix(desktop): improve browser cookie import detection (#7323)
728e0cc
@juliusmarminge juliusmarminge mentioned this pull request Sep 3, 2026
fix(desktop): address the browser import review left over from the stack #9516
Merged
@andybergon andybergon mentioned this pull request Oct 9, 2026
Browser profile import on Windows does not explain why Chrome is unavailable #17402
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

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.

Projects

None yet

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.

2 participants

@UtkarshUsername @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.