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
Catalog fetch failures correlated with missing proxy variables in session commands; app restart restored operation
#14655
On macOS with DeepSeek Harness desktop 0.2.3-alpha.2 and dshmarket@1.84.1, catalog requests began repeatedly failing after previously succeeding. During the failure, a command launched from a live session lacked HTTP_PROXY and HTTPS_PROXY, while NO_PROXY/no_proxy remained present. An external curl request using the configured proxy successfully downloaded the catalog during the same failure period. After restarting the app, the proxy variables were present again in session commands and catalog fetching recovered.
Proxy-environment handling is a suspected contributor, not an established root cause. I did not directly capture the parent process's environment transition, the dispatcher selected for a failing request, or the runtime caller responsible. Child-environment overlays have not been excluded.
Community market plugin dshmarket@1.84.1, using undici 7.30.2.
A network requiring an authenticated proxy; proxy settings declared in ~/.dsh/.env.
Chat requests continued to work while the catalog was failing.
Observed timeline
All times below are UTC+8, and all dates are in 2026.
Time
Observation
Nov 27, 17:33
Desktop/Harness processes started. The relevant process was not restarted before the failures were investigated on Nov 30.
Nov 27, approximately 17:34-17:38
Catalog requests succeeded; the last success in that window took approximately 6.4 seconds. The route was not directly traced.
Nov 27, 17:50:49
A profile patch file was modified. This is a nearby event only: I have not established that patch reload/HMR caused the failure.
Nov 27, 17:53:45
A catalog failure was logged as catalog fetch failed: fetch failed (42s, 4 attempts). The exact time of any environment change is unknown.
Nov 28-30
Repeated catalog failures appeared in the inspected logs, with no later catalog success found before the restart. This is not a continuous measurement of network availability.
Nov 30, approximately 13:27
An external curl request using the proxy configured in ~/.dsh/.env downloaded the same catalog successfully: approximately 19.9 MB uncompressed / 4.9 MB compressed, in 12.7 seconds. This establishes that the proxy route was usable at that time, not throughout the entire incident.
Nov 30, approximately 13:27
A command spawned from a live DSH session lacked HTTP_PROXY/HTTPS_PROXY; NO_PROXY/no_proxy were still present. This was a child-command probe, not a direct parent-process environment capture.
Nov 30, 15:38
The app was restarted. Session commands then had HTTP_PROXY/HTTPS_PROXY again.
Nov 30, 15:39 and 15:42
Catalog requests succeeded again, taking 10.1 seconds and 8.2 seconds respectively; the first succeeded after one request attempt.
A separate test on the same network showed that a direct connection timed out, whereas an explicitly proxied undici request succeeded. The failing catalog requests were not traced at socket/dispatcher level, so their timeout duration alone does not prove that they took the direct route.
Relevant implementation details and unconfirmed hypotheses
These are pointers for investigation, not a demonstrated causal chain:
In dshmarket, marketFetch() selects a proxy or direct undici dispatcher using ambient process.env at request time. If the required proxy variables are unavailable to that code, direct fallback is a plausible explanation for the catalog symptoms.
In the source available to me, apps/cli/src/profile-boot.ts:299-302 installs proxy policy at startup using installProxyFromEnvironment(options.environment, ...) and the launch environment snapshot.
packages/util/http-proxy/src/install.ts:79-129 publishes/restores environment values. writeProxyEnv() removes a name when the corresponding value is undefined:
The policy publishes the HTTP, HTTPS, and NO_PROXY name pairs. ALL_PROXY is resolved as a fallback but is not published by this mechanism.
The utility supports nested installations, including an explicit direct policy over an existing proxy policy, and provides cleanup/restoration behavior. These are supported semantics, not by themselves a bug. I have not captured such an installation or cleanup call during this incident.
Importantly, apps/cli/src/profile-boot.ts:311-314 registers the proxy disposer with process shutdown. The profile patch/HMR path disposes plugin fibers; that does not establish that it invokes this boot-level proxy disposer. I have not found a verified path connecting the nearby patch modification to a proxy-policy transition.
The process.env state visible to the plugin, the installed global dispatcher/policy, and the environment constructed for a session subprocess need to be distinguished. The child-command probe and an exec-time ps -E snapshot do not establish that the parent environment was mutated by a particular function.
Source-version caveat: the line numbers above refer to a locally available 0.1.6-alpha.1 source checkout. The installed desktop version was 0.2.3-alpha.2. Bundled code was also inspected, but I have not reproduced the incident with an instrumented installed build or established exact runtime equivalence across versions. Please treat these references as investigation pointers.
Reproduction status
I do not have deterministic reproduction steps. The observed sequence was: launch with a proxy configured in a .env layer, observe successful catalog requests, continue using the app, later observe repeated catalog failures and missing proxy variables in a session command, then restart and observe recovery. I cannot currently name a reliable action that triggers the transition; editing a profile patch is not a confirmed reproducer.
Expected behavior / help requested
For consumers meant to inherit the active proxy configuration, that configuration should remain consistent across plugin requests and session commands unless intentionally changed. If the policy changes intentionally, it should be diagnosable without exposing credentials.
Could maintainers help determine whether this is a host proxy-policy lifecycle issue, a child-environment overlay issue, or a plugin-specific dispatcher issue? Useful diagnostics might include:
Proxy-policy install/restore transitions, their owner/lifetime, and a reason or call-site identifier.
Presence-only changes for proxy variable names in the host and in constructed child environments, with no values or credentials logged.
The proxy/direct decision used by a failing catalog request, without logging authenticated proxy URLs.
I am not proposing forced reinstallation of the launch policy or disabling valid direct-policy transitions; either could interfere with intentional policy changes or cleanup. Regression tests should follow once the actual trigger is identified.
Restarting the app was a successful workaround for this incident, not proof that the underlying cause has been fixed. Sanitized log excerpts can be provided if useful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
On macOS with DeepSeek Harness desktop 0.2.3-alpha.2 and dshmarket@1.84.1, catalog requests began repeatedly failing after previously succeeding. During the failure, a command launched from a live session lacked
HTTP_PROXYandHTTPS_PROXY, whileNO_PROXY/no_proxyremained present. An externalcurlrequest using the configured proxy successfully downloaded the catalog during the same failure period. After restarting the app, the proxy variables were present again in session commands and catalog fetching recovered.Proxy-environment handling is a suspected contributor, not an established root cause. I did not directly capture the parent process's environment transition, the dispatcher selected for a failing request, or the runtime caller responsible. Child-environment overlays have not been excluded.
Environment
~/.dsh/.env.Observed timeline
All times below are UTC+8, and all dates are in 2026.
catalog fetch failed: fetch failed (42s, 4 attempts). The exact time of any environment change is unknown.curlrequest using the proxy configured in~/.dsh/.envdownloaded the same catalog successfully: approximately 19.9 MB uncompressed / 4.9 MB compressed, in 12.7 seconds. This establishes that the proxy route was usable at that time, not throughout the entire incident.HTTP_PROXY/HTTPS_PROXY;NO_PROXY/no_proxywere still present. This was a child-command probe, not a direct parent-process environment capture.HTTP_PROXY/HTTPS_PROXYagain.A separate test on the same network showed that a direct connection timed out, whereas an explicitly proxied undici request succeeded. The failing catalog requests were not traced at socket/dispatcher level, so their timeout duration alone does not prove that they took the direct route.
Relevant implementation details and unconfirmed hypotheses
These are pointers for investigation, not a demonstrated causal chain:
In
dshmarket,marketFetch()selects a proxy or direct undici dispatcher using ambientprocess.envat request time. If the required proxy variables are unavailable to that code, direct fallback is a plausible explanation for the catalog symptoms.In the source available to me,
apps/cli/src/profile-boot.ts:299-302installs proxy policy at startup usinginstallProxyFromEnvironment(options.environment, ...)and the launch environment snapshot.packages/util/http-proxy/src/install.ts:79-129publishes/restores environment values.writeProxyEnv()removes a name when the corresponding value isundefined:The policy publishes the HTTP, HTTPS, and NO_PROXY name pairs.
ALL_PROXYis resolved as a fallback but is not published by this mechanism.The utility supports nested installations, including an explicit direct policy over an existing proxy policy, and provides cleanup/restoration behavior. These are supported semantics, not by themselves a bug. I have not captured such an installation or cleanup call during this incident.
Importantly,
apps/cli/src/profile-boot.ts:311-314registers the proxy disposer with process shutdown. The profile patch/HMR path disposes plugin fibers; that does not establish that it invokes this boot-level proxy disposer. I have not found a verified path connecting the nearby patch modification to a proxy-policy transition.The
process.envstate visible to the plugin, the installed global dispatcher/policy, and the environment constructed for a session subprocess need to be distinguished. The child-command probe and an exec-timeps -Esnapshot do not establish that the parent environment was mutated by a particular function.Source-version caveat: the line numbers above refer to a locally available 0.1.6-alpha.1 source checkout. The installed desktop version was 0.2.3-alpha.2. Bundled code was also inspected, but I have not reproduced the incident with an instrumented installed build or established exact runtime equivalence across versions. Please treat these references as investigation pointers.
Reproduction status
I do not have deterministic reproduction steps. The observed sequence was: launch with a proxy configured in a
.envlayer, observe successful catalog requests, continue using the app, later observe repeated catalog failures and missing proxy variables in a session command, then restart and observe recovery. I cannot currently name a reliable action that triggers the transition; editing a profile patch is not a confirmed reproducer.Expected behavior / help requested
For consumers meant to inherit the active proxy configuration, that configuration should remain consistent across plugin requests and session commands unless intentionally changed. If the policy changes intentionally, it should be diagnosable without exposing credentials.
Could maintainers help determine whether this is a host proxy-policy lifecycle issue, a child-environment overlay issue, or a plugin-specific dispatcher issue? Useful diagnostics might include:
I am not proposing forced reinstallation of the launch policy or disabling valid direct-policy transitions; either could interfere with intentional policy changes or cleanup. Regression tests should follow once the actual trigger is identified.
Restarting the app was a successful workaround for this incident, not proof that the underlying cause has been fixed. Sanitized log excerpts can be provided if useful.
All reactions