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.
第三方 bundle 双实例依赖缺少防护导致 deepseek-harness 工具调度崩溃
崩溃会导致 deepseek-harness 无法启动或者无法对话,没办法使用 DSH 自查寻找问题,今天搞了大半天,重装了 deepseek-harness 好几次才定位到。
第三方 bundle 若把
@deepseek-ai/dsh-tools声明为dependencies而非peerDependencies,dsh plugin add会在 profile 里装出第二份实例,导致所有工具调用(含内置pwsh)崩溃,报Cannot read properties of undefined (reading 'prepare')。根因
profiles/<name>/node_modules(副本)。profiles/node_modules,Node 就近解析时 bundle 命中了副本。TOOL_RUNTIME_SCHEDULER是模块顶层 Symbol,两枚互不互通。ctx.tools[TOOL_RUNTIME_SCHEDULER]得undefined,.prepare()崩溃。排查
package.json里"dependencies": { "@deepseek-ai/dsh-tools": ">=0.1.0-rc.6" },代码import { defineTool } from '@deepseek-ai/dsh-tools',dsh plugin add后调用任意工具即崩。卸载后恢复。建议
dsh plugin安装后检测 profile 里与宿主重名的@deepseek-ai/*,命中即警告。TOOL_RUNTIME_SCHEDULER为undefined时,提示"疑似重复安装"而非裸报reading 'prepare'。@deepseek-ai/*运行时包必须用peerDependencies。All reactions