[Bug] --interactive startup prompt is silently dropped with a local plugin custom agent
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 65/100
Rechercherichtung
Beginne damit, den dokumentierten Befehl -i/--interactive mit einem lokalen Plugin-Custom-Agenten nachzustellen, und verfolge anschließend die Verarbeitung der CLI-Startargumente bis zur Agentenauswahl. Als erledigt gilt, dass der übergebene Prompt zum ersten User-Turn wird und automatisch ausgeführt wird, mit Abdeckung des Custom-Agent-Pfads.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
-i/--interactive <prompt> silently drops the startup prompt when Copilot CLI
is launched with a custom agent from local plugins. The TUI starts and the
requested agent is selected, but the prompt supplied on the command line is
never submitted. The session remains at zero turns.
This is using the standard GitHub Copilot provider, not a custom/BYOK provider.
Affected version
GitHub Copilot CLI 1.0.83-5
Windows 11, x86_64
Windows Terminal / PowerShell
Steps to reproduce the behavior
-
Load a local plugin that contributes a custom agent.
-
Start an interactive session with both the agent and an initial prompt:
copilot ` --plugin-dir "$HOME\git\bstack\bstack" ` --plugin-dir "$HOME\git\bstack\workiq" ` --agent bstack:Architect ` --interactive "<ordinary prompt text>" -
Observe that the TUI starts and selects
bstack:Architect, but the supplied
prompt is not executed. -
Manually entering a prompt after startup works.
Expected behavior
The prompt passed to -i/--interactive should automatically execute as the
first turn, as documented by copilot --help:
-i, --interactive <prompt>
Start interactive mode and automatically execute this prompt
Additional context
The debug log confirms that argument processing and custom-agent selection
succeeded:
"agent_name": "bstack:Architect"
"agent_display_name": "Architect"
However, the same process shut down with:
"turn_count": 0
There is no corresponding user.message, assistant turn start, or model call
for the command-line prompt. This rules out prompt interpretation or tool
execution as the failure point: the --interactive argument value never
becomes a user turn.
This resembles #4258, but that report was limited to custom/BYOK providers and
is closed. This reproduction uses the standard GitHub provider and a local
plugin custom agent on 1.0.83-5, so the failure is either a regression or a
broader unfixed startup-argument path.
#4592 may also be related because it documents custom-agent initialization
ordering differences between interactive and prompt modes.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 17 Std. 6 Min.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/copilot-cli
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
github/copilot-cli#4963 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
github/copilot-cli#4932 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/copilot-cli#4909 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
github/copilot-cli#4906 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
github/copilot-cli#4848 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in github/copilot-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
YosysHQ/oss-cad-suite-build#216 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
ekalinin/github-markdown-toc#167 ·
-
out-of-date
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
CachyOS/CachyOS-PKGBUILDS#1917 ·
Maintainer antworten meist innerhalb von 1 Tag
-
package-update
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag