browse: two macOS/Windows follow-ups from the #3448 review (post-upgrade refusal with a persistent BROWSE_PROXY_URL=direct; unparseable-variable warning wording)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 57/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Start with browse/src/cli.ts and browse/src/proxy-config.ts, then read the related tests, proxy-config.test.ts, and BROWSER.md. Check how ensureServer orders the version and config hash checks, and how resolveProxy builds its warning across platforms. Done means both upgrade refusal behavior and the non-Linux warning match the described proxy behavior, with the platform case covered by tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
Related: #3440, #3448, #3450.
- Lingua principale
- TypeScript
- Stelle
- 143k
- Fork
- 21k
- Merge medio
- 5h 25m
- PR unite (30g)
- 791
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di garrytan/gstack
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
garrytan/gstack#4971 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
garrytan/gstack#4768 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 3/5 1-2 giorni Idoneità per principianti 60/100
garrytan/gstack#4766 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
S3
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
garrytan/gstack#4765 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
garrytan/gstack#4764 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di garrytan/gstack
Issue simili
-
bug Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
scottbenton/Iron-Link#541 ·
I maintainer di solito rispondono entro 1 giorno
-
hosts settings: the SSH address field and the separate User field are two ways to name one SSH userAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
prime-radiant-inc/evener#8161 ·
I maintainer di solito rispondono entro 1 giorno
-
Ignore Rules is not workingApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nicobailon/pi-subagents#3420 ·
I maintainer di solito rispondono entro 1 giorno
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yAperta01 type: bug 99 tag: UX Accessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni