Skip to content

fix(research): classify Gecko browsers whose URL the macOS helper captures - #153

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/research-gecko-browser-names
Oct 6, 2026
Merged

ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:fix/research-gecko-browser-names

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

The macOS helper captures the page URL for every app in FIREFOX_BROWSERS (Firefox Nightly, Zen, Zen Browser, LibreWolf, Waterfox, Floorp, added in #134). The research filter's browser sets — Python BROWSER_APPS and Swift researchBrowserApps — never listed them, so Research Edition treated these as non-browser apps: the captured URL was dropped and the page was never classified (only the app name, or Excluded with an app map).

  • Add the six names to both sets (kept identical; the existing parity test still holds).
  • New test: every entry in CHROME_BROWSERS and FIREFOX_BROWSERS must satisfy is_browser(). It fails on master and passes here, so the URL-capture list and the research browser set can't drift apart again.

Not changed: Windows/Linux executable/WM_CLASS names for these browsers. Those platforms are title-only; I didn't add names I can't verify from this repo.

Verification: pytest tests/test_research_filter.py → 53 passed (1 failed on master). Swift not compiled here (Linux host); the Swift change is list entries only.

…tures

The macOS helper extracts the page URL for Firefox Nightly, Zen, LibreWolf,
Waterfox and Floorp (FIREFOX_BROWSERS), but the research filter's browser
sets (Python BROWSER_APPS and Swift researchBrowserApps) did not list them.
Research Edition therefore treated them as non-browser apps and never
classified their pages. Add the names to both sets and a test that every
URL-capturing macOS browser is a research browser.

Git-Session-Id: eb31
@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds browser variants to research activity classification.

The PR appears safe to merge.

Summary

This PR adds six Gecko browser names to the Python and Swift Research Edition browser sets and tests that the macOS URL-capture lists are recognized by the Python filter.

Reviews (1) · Last reviewed commit: "fix(research): classify Gecko browsers w..."

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

CI-green and mergeable — waiting only on a maintainer click.

This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted.

@TimeToBuildBob

TimeToBuildBob commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 AI code review

Adds six Gecko-based browser names (Firefox Nightly, Zen, Zen Browser, LibreWolf, Waterfox, Floorp) to the research browser sets in both the Python research_filter.py and the Swift macos.swift helper, and adds a test asserting that every entry in the Swift CHROME_BROWSERS and FIREFOX_BROWSERS lists satisfies is_browser().

Safe to merge — no P0/P1 findings

Confidence 5/5

✅ No findings. The diff looks correct to me on this pass.

Files changed (3) — the diff as I read it
  • aw_watcher_window/macos.swift — Adds the six Gecko browser names to the researchBrowserApps set.
  • aw_watcher_window/research_filter.py — Adds the same six browser names to the BROWSER_APPS frozenset.
  • tests/test_research_filter.py — Adds a test that every entry in the Swift CHROME_BROWSERS and FIREFOX_BROWSERS lists is recognized as a browser by is_browser().

Reviewed 1370f535048c · openrouter/deepseek/deepseek-v4-flash-0731 · llm engine · 87s · about this reviewer

Maintainer commands

@TimeToBuildBob review (own line) — fresh review · @TimeToBuildBob fix — a worker acts on the findings. Once per comment; 👀 = received.

@ErikBjare
ErikBjare merged commit 8e4d5a5 into ActivityWatch:master Oct 6, 2026
7 checks passed
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