Repository navigation
Bug: Plugin registrations on the host plane are invisible to agents (dsh 0.1.0-rc.6) #1782
Replies: 2 comments
|
@zoahdev 的判断(更像 #1697 的双实例家族,而不是 scope 层问题)我认为方向是对的。补两件:一个能让这个诊断变得决定性的细节,和那边现在已经走到哪一步了。 一、你报告里有一条线索可以直接检验双实例假设:命令也不见了@zoahdev 的推理解释的是工具:profile 顶层 hoist 出一份 但你原帖报的是两样都不见:
命令注册表和工具注册表不在同一个包里。 所以:
这是一个不需要读源码就能做的决定性检查: ls -la ~/.dsh/profiles/web/node_modules/@deepseek-ai/看有几个是真实目录(不是符号链接)。@zoahdev 给的 (顺带: 二、#1697 那边已经有写好的修复,而且比"一行
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Bug 报告:host 平面(根 realm)注册的命令/工具对 agent 不可见(dsh 0.1.0-rc.6)
环境:dsh 0.1.0-rc.6(npm 安装,
dsh webprofile),macOS,Node 26。通过 profile patch(
cordis.patch.yml)插入到 host 平面的插件挂载成功——pluginInventory/list显示fiberPhase: "active",cordis 用new正常实例化 class 插件(构造函数执行无报错)——但插件注册的所有内容对 agent 都不可见:commands/list不包含插件注册的命令(构造函数里通过ctx.get("commands").register(...)注册)commands/execute返回空(命令未解析到)ctx.get("tools").register(...)注册)对照组:在 agent preset 的 isolate realm 内注册的命令(standard 预设
compactionrealm 里的/compact)对 agent 可见;而 host 根平面的注册不可见。复现步骤:
billion-context-dsh)~/.dsh/profiles/web/cordis.patch.yml)中加入:dsh web,打开新会话commands/list(或让模型列出工具)→ 插件的命令/工具缺失影响:host 平面插件(官方文档中的全局能力扩展方式)在 rc.6 上对 agent 完全失效。只有 preset realm 内的注册能进入 agent 的 scope 视图。
可疑点:scope 感知的分层注册表(commands/tools)——
register()把注册插入到"注册方 ctx"对应的层;agent 视图(view(agent))沿 agent 的 scope 链收集各层——host 根 ctx 上的注册没有进入任何被收集的层。愿意配合提供更多细节或测试补丁。(因本仓库关闭了 Issues 故发在 Discussions;如项目有更偏好的反馈渠道请告知,我可以迁移。)
All reactions