feat: cookie import profile picker for multi-account browsers#377
Open
red545 wants to merge 1 commit intogarrytan:mainfrom
Open
feat: cookie import profile picker for multi-account browsers#377red545 wants to merge 1 commit intogarrytan:mainfrom
red545 wants to merge 1 commit intogarrytan:mainfrom
Conversation
Chromium browsers support multiple profiles (accounts), but cookie import always read from the Default profile. Users with multiple Chrome or Arc profiles couldn't import cookies from non-default accounts. Changes: - Add listProfiles() that reads Local State JSON to discover profiles with human-readable display names (account name + gaia name) - Add GET /cookie-picker/profiles API endpoint - Pass profile param through domains and import endpoints - Add profile dropdown in picker UI (auto-hidden for single-profile browsers) - Update findInstalledBrowsers() to detect browsers with any profile Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
DefaultChrome/Arc profile. Users with multiple profiles (e.g. personal, work, different projects) can only import cookies from the default account — there's no way to pick which profile to import from.Local StateJSON, showing human-readable names (e.g. "Nik (Nik Redl)", "zerolens.com"). The dropdown is hidden for single-profile browsers (Comet, Edge) to keep the UI clean.profileparameter defaults to'Default'everywhere.What changed
cookie-import-browser.tslistProfiles()function,ProfileEntrytype, updatedfindInstalledBrowsers()to detect any profilecookie-picker-routes.tsGET /profilesendpoint,profileparam ondomainsandimportendpointscookie-picker-ui.ts<select>dropdown, styling, wiring to reload domains on profile changeTest plan
profileparam defaults toDefault🤖 Generated with Claude Code