github / github/copilot-cli

--agent <agent name> does not work with --plugin-dir <dir> -p <prompt>

Offen
#2,795 5 Kommentare 17 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:agents area:non-interactive area:plugins
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.