Skip to content

Probe the browser's private-window flag only for private launches - #15037

Merged
dhh merged 1 commit into
quattrofrom
browser-launch-probe-only-private
Oct 12, 2026
Merged

dhh merged 1 commit into
quattrofrom
browser-launch-probe-only-private

Conversation

@dhh

@dhh dhh commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

omarchy-launch-browser ran $browser --help | grep MOZ_LOG on every launch to pick the private-window flag. Chromium answers in about 3ms, but for Firefox, Zen or LibreWolf that starts the whole browser binary just to print help, on every link opened.

The probe now runs only when --private is passed. Every other launch leaves its arguments as they are. The flag defaults to --private itself, so the existing ${@/--private/$private_flag} substitution is a no-op unless the probe ran.

Tests in launch-browser-test.sh: an ordinary launch never runs --help and passes a URL containing --private through untouched, and a private launch still probes and passes --incognito. The new tests fail against the old script.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

omarchy-launch-browser now checks the browser’s private-window flag only when its arguments include --private.

  • Ordinary browser launches skip the private-flag help probe.

Reviews (1) · Last reviewed commit: "Probe the browser's private-window flag ..." · Reviewed by Greptile

@dhh
dhh merged commit ec344f3 into quattro Oct 12, 2026
1 check passed
@dhh
dhh deleted the browser-launch-probe-only-private branch October 12, 2026 13:48
omarchybot added a commit to kvnloo/omarchy that referenced this pull request Oct 13, 2026
…flag probe

quattro now probes the browser's private-window flag only for private launches (omacom#15037). The guard stays before that probe and before the handoff, and the missing-browser tests run before the new probe tests, which remove the handoff mock they rely on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchybot added a commit to paulogeyer/omarchy that referenced this pull request Oct 13, 2026
Quattro now probes the private flag only for private launches (omacom#15037). Keep that, probing the browser the Exec line actually wraps, and check the private flag in a wrapped launch too.
omarchybot added a commit to Raj-Jagadeesh-A-P/omarchy that referenced this pull request Oct 13, 2026
Resolves the conflict with omacom#15037 by keeping its rule: the private-flag probe runs only for a private launch, so an ordinary launch never starts a Firefox binary just to read --help.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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