Replies: 1 comment
Correction (my original report mis-attributed the trigger)The running dsh kernel is actually 0.1.1-rc.2 (global npm install at
Timeline that reframes the trigger:
So the trigger is the system proxy being switched ON combined with proxy-following in the child-process environment (HTTP_PROXY appears in the pwsh sandbox and modlens CLI child processes, but NOT in the trusted runtime / The |
Uh oh!
There was an error while loading. Please reload this page.
Summary
On Windows, when a system proxy (WinINET, e.g. Clash at `127.0.0.1:7890`) is enabled, dsh (kernel `0.1.2-rc.1`, bundled with Desktop 0.10.3) injects `HTTP_PROXY`/`HTTPS_PROXY` into restricted child processes (pwsh sandbox, external CLIs like the modlens vision engine). Tools that respect `HTTP_PROXY` then route even loopback (`127.0.0.1`) requests through the proxy, which fails with `502 Bad Gateway`. This breaks modlens (LM Studio at `127.0.0.1:1234`), and would affect Ollama, local gateways, etc.
Environment
What happens
`[modlens] image read failed (engine): Error: OpenAI-compatible API error 502:` (repeated in desktop.log since the 0.10.3 / 0.1.2-rc.1 update)
Verification
Expected behavior
Loopback / local addresses (`127.0.0.1`, `localhost`, `::1`) should be excluded from proxy injection (standard NO_PROXY semantics), or child-process proxy injection should be opt-in / configurable. Routing loopback traffic through a proxy is invalid.
Workaround (until fixed)
Set user env var `NO_PROXY=127.0.0.1,localhost` and restart the Desktop app. dsh propagates NO_PROXY to children (bootstrap-inherited), and modlens' EnvHttpProxyAgent then bypasses the proxy for loopback.
Log excerpt
```
2026-09-04 08:40:36Z INFO main::service::update::install: Opening desktop installer: ...Deepseek.Harness.Desktop_0.10.3_x64-setup.exe
2026-09-04 09:25:37Z WARN dsh: [modlens] vision provider waiting for upstream
2026-09-04 09:29:59Z WARN dsh: [modlens] image read failed (engine): Error: OpenAI-compatible API error 502:
```
All reactions