`-p` mode fails if agent succeeds but does not print any conclusion
まだ誰も着手していません。
評価
調査の方向性
Start by tracing the -p prompt flow that handles an agent completing work without producing a final response, and inspect the code that reports the empty-response error and sets the exit code. Reproduce with the command in the issue, then check whether the agent made changes before deciding whether the run should succeed. Done means a run that made changes and printed no conclusion exits with code 0 without an error; a run that did nothing should retain the reported behavior.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
We have automation that runs copilot with -p, asks the agent to do something and exit. It used to work fine until 1.0.114. Since 1.0.115 the agent is still able to complete its task, but copilot then prints an error message and exits with an error exit code, making the automation think the agent failed.
Affected version
GitHub Copilot CLI 1.0.115.
Steps to reproduce the behavior
$ copilot --model gpt-5.6-luna --effort low --prompt 'Write "test" into foo.txt, then exit without saying anything.'; echo EXIT-CODE: $?
$ Shell Write test to foo.txt No Content
printf 'test' > foo.txt
Error: The model returned an empty response, so the run produced no answer.
Changes +0 -0
AI Credits 0.54 (12s)
Tokens ↑ 56.1k (37.9k cached, 18.3k written) • ↓ 102 (64 reasoning)
Resume copilot --resume=c51f8d52-0c32-4e5a-a58c-7e37e6c81f67
EXIT-CODE: 1
Expected behavior
Succeeds, does not print an error message, and exits with 0.
Additional context
Please only trigger the behavior if the agent didn't do anything at all, or add an option to disable it.
- 主要言語
- Python
- スター
- 11.5k
- フォーク
- 2k
- 平均マージ
- 6時間 34分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-cli のほかの issue
-
area:plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
github/copilot-cli#5567 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationオープンarea:tools
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/copilot-cli#5476 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
github/copilot-cli#5340 ·
github/copilot-cli の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Status: Triage Suggestion
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
collabnix/awesome-mcp-lists#515 ·
メンテナーはふだん 1 日以内に返信
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信