Adom Hydrogen
Public Made by Adomby adom
The whole Adom experience as one signed native app: your editor, your AI agent, and the full electronics design toolchain, running locally on your own machine.
Default-browser detection reads stale UserChoice key: Windows 11 default Firefox detected as Edge
ah 1.0.680 (build fa90efd1) · adom-bridge CLI 1.13.23 · Windows 11 (10.0.26200.9711)
What happened
Links opened from a Claude Code thread in Hydrogen to domains with no Browser Picker pref (alibaba.com, color-king.net, t-shirtforums.com) opened in Microsoft Edge. The user's Windows default browser is Firefox: Settings → Apps → Default apps shows Firefox for both HTTP and HTTPS.
GET /browser-profiles agrees with the wrong answer:
[{"browser":"edge","dir":"Default","isDefault":true,...},
{"browser":"firefox","dir":"Default","isDefault":false,...}]
Cause
Hydrogen appears to read the legacy UserChoice key. On this Windows 11 build, Settings writes the user's choice to UserChoiceLatest, and the legacy key is left stale:
HKCU\...\UrlAssociations\https\UserChoice ProgId = MSEdgeHTM <- stale
HKCU\...\UrlAssociations\https\UserChoiceLatest\ProgId ProgId = FirefoxURL-308046B0AF4A39CB <- real
HKCU\...\UrlAssociations\http\UserChoice ProgId = MSEdgeHTM <- stale
HKCU\...\UrlAssociations\http\UserChoiceLatest\ProgId ProgId = FirefoxURL-308046B0AF4A39CB <- real
(full path prefix: HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\)
Expected
Default-browser detection should prefer UserChoiceLatest\ProgId when it exists and fall back to UserChoice. Better still, ask Windows directly (AssocQueryString(ASSOCF_IS_PROTOCOL, ASSOCSTR_PROGID, L"https", ...)), which resolves whichever key the current build uses. With that, isDefault would be Firefox and unsaved domains would open in Firefox.
Notes
- Related, closed: adom/hydrogen#32 (login window not opening in the default browser). This may be the same root cause on newer Windows builds.
- Workaround for now: per-domain prefs (
PUT /browser-picker/prefs) or%APPDATA%\hd-browser-bias.txt.