--agent <agent name> does not work with --plugin-dir <dir> -p <prompt>
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### Describe the bug
When I use --agent with --plugin-dir -p , it starts scanning the .copilot or .github directory for .
Though this agent is present in the plugin-dir, copilot is not able to find it.
**If I don't pass -p , the copilot TUI opens and I can see the agent selected.**
I am using the version 1.0.31 (latest)
### Affected version
_No response_
### Steps to reproduce the behavior
1. Download a plugin to a directory, with a "agent/.agent.md"
2. pass the same agent name as "copilot --agent --plugin-dir " -> You will see the TUI showing "agent name" selected
3. Now pass with -p switch "copilot --agent --plugin-dir -p 'hi' " -> This will error out saying the agent is not available
### Expected behavior
(With and without -p) and with --plugin-dir and with --agent, copilot should be able to find the right agent
### Additional context
_No response_
贡献指南
调研方向
Reproduce the issue with a plugin containing agent/.agent.md, first without -p and then with `copilot --agent --plugin-dir -p 'hi'`. Trace how agent discovery differs between the TUI and prompt modes; done means the plugin agent is found and selected in both invocations.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100