Skip to content

Fix Gecko cookie profile detection for uppercase .Default directories#422

Merged
ratulsarna merged 1 commit intosteipete:mainfrom
bald-ai:codex/cookie-detection-gecko-default-case-insensitive
Feb 26, 2026
Merged

Fix Gecko cookie profile detection for uppercase .Default directories#422
ratulsarna merged 1 commit intosteipete:mainfrom
bald-ai:codex/cookie-detection-gecko-default-case-insensitive

Conversation

@bald-ai
Copy link
Copy Markdown
Contributor

@bald-ai bald-ai commented Feb 24, 2026

Summary

  • match Gecko profile directory names case-insensitively when checking for *.default*
  • apply this to both profile availability checks and cookies.sqlite detection
  • add regression test for Zen profile directory names like abc.Default (release)

Why

Some Firefox/Zen installs use uppercase Default in profile directory names. Current matching only checked lowercase .default, which can skip valid cookie stores and block cookie import.

Validation

  • pnpm check
  • ./Scripts/compile_and_run.sh
  • manual local verification: CodexBarCLI usage --provider cursor --source auto ... imported cookies successfully from Zen e6wtnxlb.Default (release)
  • swift test --filter BrowserDetectionTests

Note

swift test (full suite) currently crashes in existing ProviderVersionDetector teardown path (NSConcreteTask terminationStatus: task still running) on current main; unrelated to this change.

@bald-ai
Copy link
Copy Markdown
Contributor Author

bald-ai commented Feb 24, 2026

Hi, the issue was that auto cookie were failing in Zen browser due to case sensitive .default vs .Default. Should be fixed now.

@ratulsarna ratulsarna merged commit 855a10f into steipete:main Feb 26, 2026
4 checks passed
@ratulsarna
Copy link
Copy Markdown
Collaborator

Thanks @bald-ai !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants