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.
Uh oh!
There was an error while loading. Please reload this page.
问题
通过
http://<局域网IP>:3080访问 Web UI 时,打开文件夹(选择工作区)报"无法打开文件夹",显示 error 文字:复现方法
根因
crypto.randomUUID()只在所谓的安全上下文(HTTPS 或 localhost)可用。明文 HTTP + 非本机地址不是安全上下文,window.crypto.randomUUID是 undefined。dsh 的客户端 RPC 层在每次调用时用它生成 rpcId:packages/host/apiproxy/src/fetch/client.ts—AbstractApiClient.mintRpcId()调用crypto.randomUUID()packages/client/ui-conversation/src/client/service.ts—browserDraftAttachment()调用crypto.randomUUID()两点补充:
packages/client/connection/src/client/random-uuid.ts(基于crypto.getRandomValues,注释明确写了 insecure origins 可用),但上面两处没有复用它。--host 0.0.0.0(防远程代码执行暴露到网络),局域网访问需要改绑定配置。修复
两处改用
crypto.getRandomValues生成 v4 UUID(与 connection 包现有实现一致)。apiproxy 不能反向依赖 connection(会成环),ui-conversation 受插件间值导入的 bundle purity 约束,所以各自本地复制了这个 9 行的小函数。完整分支:https://github.com/Lehmaning/deepseek-harness/tree/fix/randomuuid-secure-context
临时绕过
http://localhost:3080(localhost 是安全上下文,无需任何改动)All reactions