Repository navigation
Replies: 1 comment
|
Confirmed on master (c291e79): your root cause is correct and the defect is still live. Verified chain, with source citations from the current master checkout:
Your workaround is valid: a profile patch with Both suggested fixes are right, with one precision: the adapter does attach the underlying error as a structured Status: still present on master. A statistics field should degrade to a warning and skip the broken entry, not abort the request — I'll flag this for maintainer attention. 中文摘要:根因已按 master 源码逐点核实——llm-deepseek 把扩展准备阶段的任何异常直接升级为 REQUEST_EXTENSION(adapter.ts:627-637),而默认挂载的 plugin-package-inventory-deepseek 每请求解析全部活跃插件包,任一损坏条目即抛错(index.ts:117、64-67)。你给的禁用 profile patch 有效;修好损坏的 loader 条目才是治本。master 仍未修复。 |
Uh oh!
There was an error while loading. Please reload this page.
Environment
@deepseek-ai/dsh-base,@deepseek-ai/dsh-web-app,dshmarket(1.45.1)Symptom
Every chat turn and every automatic session-title generation fails with:
The API key itself is valid (direct
curlagainstapi.deepseek.comreturns 200), and the credential service has the key stored.Root cause
In
@deepseek-ai/dsh-llm-deepseek(lib/index.js, thestream()path), any error thrown while preparing request extensions aborts the entire request:The default-enabled extension
@deepseek-ai/dsh-plugin-package-inventory-deepseekresolves thepackage.jsonof every active loader entry at request time:PackageIdentityResolver.resolve()throws (cannot resolve active package .../ manifest missing name or version) when any entry is broken. One broken plugin entry therefore kills every chat request.How it happened here (repro steps)
dsh-chat-import); the market hot-mounts it ([dsh-market] hot-mounted dsh-chat-import), which also leaves an emptynode_modules/@linxin666/scope directory behind.REQUEST_EXTENSION.After this, chat works again (requests simply no longer carry the
dsh_plugin_packagesfield).Log evidence
(The failure happened ~45 ms after request start — a local resolution error, not a network issue.)
Suggested fixes (either or both)
plugin-package-inventory-deepseek's prepare should catch per-package resolution errors, skip the broken entry (or the whole field), and log a warning — a statistics field must never take down the chat.LlmErrorhidescausefrom both the UI and the log file, making this impossible to self-diagnose. Log the cause chain (or include it in the UI error details).中文摘要
DeepSeek request extension preparation failed (REQUEST_EXTENSION),API key 本身有效。llm-deepseek把扩展准备阶段的任何异常都升级为请求失败;默认启用的plugin-package-inventory-deepseek在请求时解析所有活跃插件的 package.json,任一插件条目损坏(如通过 dshmarket 安装又卸载后残留空目录)即抛错。All reactions