-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Problem
Gemini browser mode fails on Windows with:
ERROR: Gemini browser mode requires Chrome cookies for google.com (missing __Secure-1PSID/__Secure-1PSIDTS).
Root Cause
- Gemini executor uses
chrome-cookies-securewhich doesn't work on Windows (requires macOS Keychain/Linux keyring) - Windows cookie extraction exists (
src/browser/windowsCookies.ts) but is hardcoded tochatgpt.comonly (line 130) - Windows cookie sync is disabled in
loadChromeCookies()(line 31-35)
Solution
- Make
loadWindowsCookies()domain-agnostic, adddomainFilterparameter toreadChromeCookiesDb()to supportgoogle.com(currently hardcoded tochatgpt.com) - Add Windows-specific loader in Gemini executor, create
loadGeminiCookiesFromWindows()that usesloadWindowsCookies()with'google.com'filter - Integrate into Gemini executor, try Windows extraction first on Windows before falling back to
chrome-cookies-secure - Export
resolveCookieFilePath()fromchromeCookies.tsfor cookie path resolution
Files to Modify
src/browser/windowsCookies.ts, add domain filter parametersrc/gemini-web/executor.ts, add Windows cookie loadersrc/browser/chromeCookies.ts, exportresolveCookieFilePath
Dependencies
All required dependencies already exist (DPAPI via @primno/dpapi, sqlite3, PowerShell)
Note
App-bound cookies (v20) may still fail DPAPI decryption, which is why Windows cookie sync was originally disabled. This should work for most cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed