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
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.
[Bug] Web UI 新建会话静默失败:
node不在 PATH 时 subprocess 后端无法 spawnEnvironment
@deepseek-ai/dsh@0.1.0-rc.6(npm 安装)npm i -g到自定义目录,node未链接到系统 PATHSteps to reproduce
node不在 dsh 进程的 PATH 中(例如~/.local/bin只有dsh软链,没有node)dsh web,打开http://127.0.0.1:3080+按钮新建会话Actual behavior
点击
+无任何响应,前端不报错,会话创建失败。web.err.log持续刷屏:Root cause
dsh 的 subprocess 后端在 spawn 子进程时通过
env node定位 node,但 dsh 进程继承的 PATH 里没有 node,导致创建会话所需的子进程无法启动、静默失败。Expected behavior
dsh 应在启动时校验 node 可执行文件是否可解析,缺失时给出明确报错(而不是等到用户点
+才静默失败)。这对"自定义安装目录 + 未全局链接 node"的用户(如版本管理器、企业沙箱环境)很重要。Additional note
把
node软链进 PATH(如~/.local/bin/node)并重启 dsh 后问题消失,会话创建恢复正常。All reactions