github / github/copilot-cli

[Bug] --interactive startup prompt is silently dropped with a local plugin custom agent

Aperta
#4,723 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

area:agents area:non-interactive area:plugins
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

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
  1. Load a local plugin that contributes a custom agent.

  2. 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>"
    
  3. Observe that the TUI starts and selects bstack:Architect, but the supplied
    prompt is not executed.

  4. 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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il comando documentato -i/--interactive con un custom agent di plugin locale, quindi traccia la gestione degli argomenti di avvio della CLI fino alla selezione dell'agent. Il lavoro è completato quando il prompt fornito diventa il primo turno dell'utente e viene eseguito automaticamente, con copertura del percorso custom-agent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
65/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.