fix(cli): a link to a nested agent lands on the wrong file in Kilo and OpenCode builds
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 83/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
先检查 cli/src/contexts/tools/domain/profiles/kilo/build.ts 和 cli/src/contexts/tools/domain/profiles/opencode/build.ts 中的 agent 链接解析器,然后将它们的路径处理方式与通用扁平策略中的 flatAgentPath 进行比较。为每个工具中的嵌套 agent 添加一个会失败的测试,然后更新解析器,使其符合扁平路径规则。两个测试都确认链接指向扁平化后的 agent 文件时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Description
In Kilo and OpenCode builds, a link from one agent's text to an agent nested under agents/<folder>/ resolves to a path that keeps the folder, while the agent file itself is written flattened. The link lands on a file that does not exist.
Affected file(s)
cli/src/contexts/tools/domain/profiles/kilo/build.ts, cli/src/contexts/tools/domain/profiles/opencode/build.ts (their own agent link resolvers)
Expected behaviour
A link to a nested agent resolves to the file the build writes, through the same rule as the generic flat strategy's flatAgentPath.
Observed behaviour
The generic flat strategy was aligned in #1158 (agent writer, command naming an agent, markdown link). The Kilo and OpenCode agent transforms still resolve links through their own resolvers, which do not drop the folder.
AI tool
Other: Kilo, OpenCode.
OS
macOS, Linux, Windows.
Additional context
No shipped plugin nests agents today, so no user is affected yet. The fix is a test with a nested agent on each of the two tools, red first.
- 主要语言
- TypeScript
- 星标
- 481
- 派生
- 45
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 106
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ai-driven-dev/framework 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
ai-driven-dev/framework#1162 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ai-driven-dev/framework#1147 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
ai-driven-dev/framework#1118 ·
维护者通常 1 天内回复
-
docs(framework): explain how a contributor without push access opens a pull request可能重新可做 @sadhana-s-codez 于 10 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
ai-driven-dev/framework#1117 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
ai-driven-dev/framework#1112 · 1 条评论 ·
维护者通常 1 天内回复
查看 ai-driven-dev/framework 的全部 Issue
相似的 Issue
-
Billion-context documentation addendum: nudge is independent of window occupancy. | billion-context 文档补充:nudge 与窗口占用无关可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1-3 小时 新手友好度 86/100
ranxianglei/billion-context#5893 ·
维护者通常 1 天内回复
-
stringify escapes leading digits in pseudo-class arguments (:nth-child(1) becomes :nth-child(\31 ))未关闭
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
enhancement security severity:low
难度 2/5 1-3 小时 新手友好度 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
维护者通常 1 天内回复
-
[Bug]: Claude account rows no longer show the email (since #8055), so "Account 1, 2, 3" cannot be told apart可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭account-pool bug gui
难度 2/5 1-3 小时 新手友好度 76/100
lidge-jun/opencodex#8286 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复