Skip to content

feat: auto-open Firefox for Companion login - #604

Open
stalane wants to merge 1 commit into
mxrch:masterfrom
stalane:master
Open

feat: auto-open Firefox for Companion login#604
stalane wants to merge 1 commit into
mxrch:masterfrom
stalane:master

Conversation

@stalane

@stalane stalane commented Aug 4, 2026

Copy link
Copy Markdown

Summary

The GHunt Companion extension is no longer available on the Chrome Web Store, so the login flow now targets Firefox.

When the user picks option [1] (Companion listening mode) in ghunt login, GHunt now auto-opens Firefox to https://accounts.google.com before starting the local listener, so the user can sign in and click the Companion toolbar icon.

Changes

  • ghunt/helpers/utils.py — new open_browser() helper that prefers Firefox (GHUNT_BROWSER env var override, then firefox/firefox-esr), never Chrome; falls back to the system default browser only if Firefox is absent.
  • ghunt/config.pylogin_companion_url constant (defaults to https://accounts.google.com).
  • ghunt/helpers/auth.pyauth_dialog() auto-opens Firefox when option [1] is chosen (skipped inside Docker); Companion hint text is now Firefox-only.
  • README.md — removed the dead Chrome Web Store badge, noted the Companion is Firefox-only.
  • .gitignore — ignore .opencode/ and graphify-out/.

Testing

  • py_compile passes on all changed files.
  • open_browser() verified: resolves Firefox when present, falls back correctly, honors GHUNT_BROWSER.

The GHunt Companion extension is no longer available on the Chrome Web
Store, so the login flow now targets Firefox.

- Auto-open Firefox to accounts.google.com in Companion listening mode
  (skipped inside Docker, GHUNT_BROWSER env var to override)
- README: drop dead Chrome Web Store badge, note Firefox-only companion
- gitignore: ignore .opencode/ and graphify-out/
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.

1 participant