`skillDirectories` setting from `settings.json` is not honored in ACP mode (`copilot --acp`)
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
~/.copilot/settings.json supports a skillDirectories array for registering
additional custom skill source directories. These directories' skills are
correctly discovered and listed when running the interactive copilot CLI,
but do not show up when the same user/config runs in ACP mode
(copilot --acp, e.g. via the Zed editor's ACP integration).
Affected version
Copilot CLI 1.0.82
Environment
- OS: Windows
- ACP client: Zed editor (
copilot --acp) - Windows Terminal:
copilot.exe --acp
Steps to reproduce
-
Add a
skillDirectoriesentry to~/.copilot/settings.json, e.g.:{ "skillDirectories": [ "C:\\Users\\<user>\\ai_space\\skill_groups\\workflow_skills", "C:\\Users\\<user>\\ai_space\\skill_groups\\shorthand_skills", "C:\\Users\\<user>\\ai_space\\skill_groups\\ddstack_skills" ] }
Each directory contains one or more <skill-name>/SKILL.md skills.
-
Run interactive
copilot, thencopilot skill list(or/skills list).
Result: skills from allskillDirectoriesentries appear under a
"Custom skills:" heading, alongside project (.github/skills/) and
personal (~/.copilot/skills/) skills. Confirmed working — e.g.
workflow-design,shorthand-crew,principle-fix-root-causes, etc. all
listed (43 custom skills total in our test). -
Independently, spawn
copilot.exe --acpas a subprocess and drive it
directly over stdio with raw JSON-RPC (bypassing any client like Zed
entirely, to rule out client-side filtering):initialize→session/new(with the samecwd) →session/prompt
asking the agent to "list every skill name available to you right now,
grouped by category, without invoking any tool."
Result: the agent's response only lists project (12 skills),
user/personal (5 skills), and builtin (2 skills) categories. The
custom category empty, none of the 43 skills sourced fromskillDirectories, does
not appear in its own self-reported system context.
Expected behavior
ACP mode should discover and expose the same skill set as interactive mode,
including all directories configured via skillDirectories in
settings.json, since both entry points read the same global config file.
Actual behavior
ACP mode does not surface any skillDirectories-sourced skills, with no
error, warning, or other indication that the setting was skipped.
Additional context
settings.jsonandconfig.jsonare unmodified between the two runs —
same file, same user, same machine.- Personal (
~/.copilot/skills/) and project (.github/skills/) skills
do load correctly in ACP mode, so this isn't a total skill-loading
failure — it's specific to theskillDirectoriescustom-path mechanism. - Reproduced twice: once via a live Zed →
copilot --acpsession, and once
via a standalone hand-rolled ACP client script, ruling out a
client-specific (Zed) cause.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 copilot --acp 入口开始,将其技能发现与交互式 copilot 进行比较,并使用 ~/.copilot/settings.json 中的 skillDirectories 设置作为输入。使用 initialize、session/new 和 session/prompt 进行复现;当 ACP 将已配置的自定义技能与项目技能、个人技能和内置技能一同公开时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 描述清楚
- 新手友好度
- 72/100