You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
browse: two macOS/Windows follow-ups from the #3448 review (post-upgrade refusal with a persistent BROWSE_PROXY_URL=direct; unparseable-variable warning wording) #3454
Two low-confidence red-team notes from the /ship review of #3448 (the --proxy-server=direct:// launch fix for #3440 item 8), filed as a follow-up on GStack Minder's direction. Both are macOS/Windows only, where BROWSE_PROXY_URL=direct is part of the daemon config hash and bypasses the system proxy settings.
1. A persistent BROWSE_PROXY_URL=direct meets a refusal, not an auto-restart, on the first command after upgrading past #3448
ensureServer in browse/src/cli.ts checks state.configHash against the session's hash before the binary-version auto-restart ("Binary updated, restarting server..."). A daemon started by an older gstack hashed a plain no-proxy config; the new CLI with BROWSE_PROXY_URL=direct set hashes {direct:true}, so the first command exits 1 with the BROWSE_PROXY_URL differs refusal (both sides read "no proxy", which is confusing, though the browse stop remedy is printed) instead of restarting the daemon. One-time cost per upgrade; the same ordering already applied to headed mismatches. Options: hoist the version check above the hash check, or skip an explicit-direct-only mismatch when state.binaryVersion differs and the state has no proxyDirect field.
2. The unparseable-variable warning says "browse connects directly" where Chromium follows the system proxy
resolveProxy in browse/src/proxy-config.ts (~line 321) warns ... so browse connects directly for a curl-style or unsupported HTTPS_PROXY. On Linux that is true (the launch carries --proxy-server=direct://). On macOS and Windows no switch is passed, so Chromium follows the system proxy settings (PAC/WPAD included); only BROWSE_PROXY_URL=direct makes it direct there. The hint already says that setting it "also makes Chromium bypass the system proxy settings", and BROWSER.md hedges the sentence, but the runtime message itself is not platform-aware. Fix: pass the platform into resolveProxy (or branch where the warning is built) and say on non-Linux "browse sets no proxy, so Chromium follows the system proxy settings; set BROWSE_PROXY_URL=direct to bypass them". proxy-config.test.ts pins the warning prefix, so the test needs the platform case too.
Activity