Skip to content

Hand off to the running browser with features turned off in its flags - #16185

Open
AgentRBY wants to merge 3 commits into
omacom:quattrofrom
AgentRBY:handoff-disable-features
Open

AgentRBY wants to merge 3 commits into
omacom:quattrofrom
AgentRBY:handoff-disable-features

Conversation

@AgentRBY

Copy link
Copy Markdown

Fixes #16184.

A --disable-features=… line in a browser flags file made omarchy-cmd-browser-handoff fall back on every launch, so each link and new window started a second browser process just to pass its command line over the singleton socket. --disable-features is a process flag like --enable-features, which the allow-list already accepts: the running browser applied it at startup, and it means nothing per launch.

With --disable-features=ElasticOverscroll in microsoft-edge-stable-flags.conf and Edge running, a new window from omarchy-launch-browser took ~150 ms through the fallback and takes ~93 ms with the hand-off.

Tests. browser-handoff-test.sh gains a case where the flags file turns a feature off and the hand-off still goes through. It fails on the unchanged script and passes with this change. Per-launch flags (--new-window, --profile-directory) still fall back.

🤖 Generated with Claude Code

A --disable-features line in a browser flags file made the handoff fall
back to starting a second browser process for every link and window.
Like --enable-features it is a process flag the running browser already
applied at startup, and it means nothing per launch. Users add it to work
around browser bugs, e.g. ElasticOverscroll in Edge on Linux.

Fixes omacom#16184

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

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

This PR lets browser launches use the running browser when its flags file contains --disable-features, avoiding an extra browser process.

  • Browser links can hand off directly when feature-off flags are set.

No actionable issues found.

Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at cf47789, nothing found to change.

Reproduced on a disposable Omarchy worker with a real Chromium running and --disable-features=ElasticOverscroll added to ~/.config/chromium-flags.conf: the script as it is on quattro refuses the hand-off (exit 1, no window), and this branch hands the command line to the running browser, which opens the new window. With --new-window also in the flags file, the hand-off still refuses, so per-launch flags keep going to the launcher. The new case in browser-handoff-test.sh fails with the old script and passes with this one.

Suite: ./test/all ran on the worker. Six test files fail (ascii, branding-about-animation, hyprland-startup-cursor-cold, i18n, lock-appear-budget, runtime-smoke), and each fails the same way without this change, so none is from it.

Second opinion: Codex Medium and muse-spark-1.3 (via pi, thinking high) reviewed it and found no defect; both agree that --disable-features is applied once when the browser process starts and a forwarded launch never re-reads it, so the fallback gained nothing the hand-off loses. That agreement is not guaranteed independent of this review. Codex also pointed out that the existing "a socket no browser answers on fails the handoff" assertion at browser-handoff-test.sh:87 passes without reaching the socket, because the loop before it leaves a --profile-directory flag in the flags file; that predates this pull request and is left alone here.

It fixes #16184 and is waiting on the maintainer. #16079 adds a test case at the same spot in browser-handoff-test.sh, so whichever lands second needs a trivial conflict resolved.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Nov 12, 2026
Both sides added an entry to the hand-off's allow-list on the same line; keep both, so the running browser takes a flags file with --disable-features or --no-first-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This had stopped merging cleanly: 2d6da28 on quattro added --no-first-run to the same allow-list line in bin/omarchy-cmd-browser-handoff. I merged quattro into the branch (e799bea, no rebase or force push) and kept both additions, so a flags file carrying --disable-features=... or --no-first-run still hands off to the running browser.

Re-verified at e799bea on a disposable Omarchy worker. With a real Chromium running and both --disable-features=ElasticOverscroll and --no-first-run in ~/.config/chromium-flags.conf, the script as it is on quattro refuses the hand-off (exit 1, the browser stays on about:blank). This branch hands the URL to the running browser, which loads it, and a --new-window argument still opens a second window. The new case in test/shell.d/browser-handoff-test.sh passes here and fails with quattro's script. ./test/all passed apart from five files (ascii, branding-about-animation, first-run, provision-owner-keyboard, runtime-smoke), and all five fail the same way on quattro itself.

Second opinion: Codex Medium and muse-wonder via pi (thinking high) reviewed the merged head and found no defects. Both checked that the merge keeps both sides, that no other allow-list of these flags exists, and that the test fails without the fix. Neither review is guaranteed to be independent of mine.

#18056 adds the oauth2-client-* flags to the same line, a separate fix, so whichever lands second will need the same kind of one-line merge.

Nothing is left for you to do. It is waiting on the maintainer.

@omarchybot omarchybot removed the ready Good to merge label Nov 18, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

I merged current quattro into this branch; it was 52 commits behind.

What was checked, on an Omarchy worker, against the merged branch:

  • browser-handoff-test.sh passes, and fails against quattro's code.
  • ./test/cli passes, 136 checks.

Claude Opus 5.5 at high effort reviewed the changes as a second opinion; its findings are folded in. Its independence from my review isn't guaranteed. Greptile scores the new head 5/5 with no open findings.

This waits on the maintainer, starting with approving the workflow run: CI hasn't run on this head yet.

@omarchybot

Copy link
Copy Markdown
Collaborator

CI ran on 3c5863c9620cc8167276a91650ad9c3bb7ba0c18 and failed in agent-account-copy-test.sh with “Quit the running Claude sessions for Main before replacing its login.” The CLI and browser handoff checks passed in that run. I ran the failed test once at that exact head on a fresh disposable Omarchy worker: all six checks passed. The account-copy test and its account-transfer helpers are unchanged by this PR. This is a flaky failure outside the browser change; its exact trigger remains unconfirmed.

Codex High checked the run log, source dependencies and worker result. Opus 5.5 High and muse-wonder via pi (thinking high) also reviewed them and found no defect requiring a change to this PR. Their agreement is not guaranteed independent of this review. The worker has been destroyed. No change is needed from the author; this waits on the maintainer because the recorded CI result remains failed.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-cmd-browser-handoff falls back on --disable-features in a flags file

2 participants