`mac-approve` match the Allow sheet ("Allow remote debugging?" / "Allow") in non-English Chrome
Author: ironerumiCreated Aug 30, 2026Updated Aug 30, 2026
Before submitting
- I searched existing issues and discussions.
- This is a feature request, not a bug.
Problem
mac-approve looks for the sheet titled Allow remote debugging? and a button described Allow. Chrome localizes both (Japanese: リモート デバッグを許可しますか? / 許可する), so on any non-English UI it returns not-found and the handshake dies at 45 s.
Proposal
Identify the sheet structurally (the only sheet on Chrome's windows whose title mentions debugging, or the one containing the per-instance checkbox) and press the button by a label list — Allow, 許可する, … — overridable by env for languages not listed.
Alternatives considered
- Forcing Chrome to English (--lang) changes the operator's browser
- AXPress on the default button is unsafe (could be Cancel)
- driving the sheet by keyboard needs focus and steals it.
Source: browser-use/browser-harness