github / github/copilot-cli

task_complete not written to output causes loss of actual result

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

Beschreibung

### Describe the bug

Regression/Related: https://github.com/github/copilot-cli/issues/1324

`copilot -p "some task e.g. review" --autopilot --model "claude-opus-4.6"` Sometimes has no meaningful output (e.g. Agent says it has everything to output a review but nothing is "written" to the output)

if you call `copilot -p "continue" --continue --autopilot --model "claude-opus-4.6"` it will tell you that the result is already in the task_complete and therefore it is done and has nothing further to do.

if you use `--excluded-tools task_complete` the agent will not terminate and tries to "search" for a way to terminate since everything is already done. Workaround: set `--max-autopilot-continues` to something low e.g. 3. But you still don't have access to the content of the task_completed result.

### Affected version

1.0.14

### Steps to reproduce the behavior

`copilot -p "some task e.g. review" --autopilot --model "claude-opus-4.6"` happens roughly in 1 of 10 tries.

### Expected behavior

The task_completed output is written to STDOUT

### Additional context

Workaround: add a task_completed hook to get the content. But since the agent sometimes outputs to STDOUT and sometimes via task_completed it requires some logic the fetch tp correct output.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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