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

オープン
#4,723 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, shell
領域
cli

調査の方向性

まず、ローカルプラグインの custom agent を使って、ドキュメント化されている -i/--interactive コマンドを再現し、次に CLI の起動引数の処理を agent の選択まで追跡します。完了条件は、与えられた prompt が最初の user turn になり、自動的に実行されること、および custom-agent パスがカバーされていることです。

索引モデルが issue の本文から書いたものです。

説明

area:agents area:non-interactive area:plugins
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.

主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-cli のほかの issue

github/copilot-cli の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。