refactor(macmini): Chrome をやめて Helium に寄せる - #581
Merged
Conversation
macmini に残っていた最後の Google 製ブラウザを外す。cask の理由文はもう実態と 合っていなかった: 常駐 Playwright MCP は #561 で削除され、ログイン投入は Safari の ネイティブヘルパーに移っている。chrome-automation ラッパーが指していた消費者は 両方とも存在しない。 実際に Chrome を生かしていたのは Orca 同梱の agent-browser で、これは /Applications を Google Chrome → Chrome Canary → Chromium → Brave の順に見て 自分でブラウザを選ぶ。つまり「置いてあるから選ばれていた」だけだった。 置き換え先は Helium。母艦が Chromium の代表として既に宣言しているものなので、 二機が同じブラウザを叩く形になる。ただし上の探索順に Helium は載っていないため、 名指しが必須になる。 - google-chrome を helium-browser に差し替え - Orca の launchd agent に AGENT_BROWSER_EXECUTABLE_PATH を追加。探索順に 依存させず、Chrome が何かの拍子に戻っても自動化対象にならないようにする - 消費者の消えた chrome-automation ラッパーを削除 no_quarantine は付けない。notarized (Developer ID: imput LLC) で spctl も accepted を返し、quarantine 属性が付いたままヘッドレス起動できることをこの機械で 確認した。cask は auto_updates なので更新はアプリ側が持つ。 検証: agent-browser --executable-path で Helium を起こし、example.com の タイトル取得と UA (HeadlessChrome/152) まで実走。darwinConfigurations.macmini.system が eval でき、生成 Brewfile が helium-browser だけを含むこと、launchd agent に 環境変数が載ること、home.packages から chrome ラッパーが消えたことを nix eval で 確認。just docs は差分なし、nix fmt も 0 changed。
gapul
force-pushed
the
feat/macmini-chromium
branch
from
September 10, 2026 15:58
87166ee to
6e6b02a
Compare
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.
macmini に残っていた最後の Google 製ブラウザを外し、agent 用のブラウザを Helium に寄せる。
なぜ
cask に書いてあった理由が実態と合っていなかった。「Playwright MCP + claude-login-broker のため」とあるが、常駐 Playwright は #561 で削除済みで、ログイン投入は Safari のネイティブヘルパーに移っている。
chrome-automationラッパーが想定していた消費者は両方とも存在しない。実際に Chrome を生かしていたのは Orca 同梱の agent-browser だった。あれは
/Applicationsを Google Chrome → Chrome Canary → Chromium → Brave の順に見て自分でブラウザを選ぶので、Chrome は「置いてあるから選ばれていた」だけ。置き換え先は Helium。母艦が Chromium の代表として既に宣言しているものなので、二機が同じブラウザを叩く形になる。ただし agent-browser の探索順に Helium は載っていないので、名指しが必須になる。
変更
google-chrome→helium-browserAGENT_BROWSER_EXECUTABLE_PATHを追加。探索順に依存させず、Chrome が何かの拍子に戻ってきても自動化対象にならないようにするchrome-automationラッパーを削除no_quarantineは付けていない。notarized (Developer ID: imput LLC) でspctl -a -vvも accepted、quarantine 属性が付いたままヘッドレス起動できることをこの機械で確認した。Orca に no_quarantine が要るのとは事情が違う。cask は auto_updates なので、更新はアプリ側が持つ。検証
--executable-pathで Helium に向けて実走。example.com のタイトル取得と UA (HeadlessChrome/152.0.0.0) まで確認nix eval .#darwinConfigurations.macmini.system.drvPathが通るhelium-browserだけが載り、google-chromeが消えていることjust docs差分なし、nix fmt0 changed残り
just rebuildで cleanup=uninstall が Google Chrome を実際に外す~/Library/Application Support/Google/Chrome*) は消していない。ログイン状態が入っているので、要否は人が決める