Repository navigation
|
标题:桌面端 Creator(cordis)模式下技能目录被静默抑制:customSkillDirs 解析到 app.asar 包内路径,chokidar 无法 watch 环境
现象在桌面 App 中分别实测四种官方 preset(以会话 transcript 中是否出现技能目录注入消息为准,即
Creator 模式下 根因分析
- id: skill-filesystem
name: '@deepseek-ai/dsh-skill-filesystem'
config:
customSkillDirs:
- !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')该表达式在桌面端把 customSkillDirs 解析到 app.asar 包内部的
web 端不受影响的原因: 复现步骤
修复建议
|
Replies: 1 comment
|
I checked the mechanics against What is confirmed
Correction 1 — it is not "no retry"; the retry is deliberate and cannot succeed
So an incomplete observation is recomputed on every Correction 2 — the flag is whole-observation, the failure is per-root
That is the sharpest form of the bug, and it is your suggestion 2: in this environment the catalogue is materially complete and is thrown away anyway. A per-root watch failure should degrade that root, not the observation. On "无日志" — there is one, and where it is missing matters
A third consumer goes dark on the same flagWorth knowing for fix 2: it is not only What we will doWe maintain the skill-facing plugin above, and this report is the second time the skill catalogue has gone silently dark (see #9375). Extending it to 0.2.0 with two arms, since the flag is the one seam a plugin can see:
This is a mitigation, not a substitute for the two upstream fixes: the preset should not point Source: this discussion (#9608); the earlier skill-catalogue invisibility report is #9375. |
I checked the mechanics against
master(d743267388) and your chain is correct end to end. Two details in the diagnosis are worth correcting, because they change what the fix has to be — and one of them makes the defect sharper than "a watch failed".What is confirmed
packages/bundle/web-app/presets/cordis.patch.yml:161-163—createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json'), joined withskills. On the desktop that resolves insideapp.asar, sostat/readdirsucceed (Electron's fs patch) and the root is discovered.chokidar.watch(anchor, { persistent: true, depth: 1, … })(packages/skill/skill-filesystem/src/index.ts:491-503).…