Skip to content

feat(cli): show the person a hook message on copilot as a progress line - #1407

Merged
blafourcade merged 3 commits into
nextfrom
feat/copilot-person-progress-line
Nov 26, 2026
Merged

blafourcade merged 3 commits into
nextfrom
feat/copilot-person-progress-line

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

Summary

On Copilot, a hook's answer({ person }) now reaches the person as a documented progress line, {"type":"progress","message":...}, printed on its own line before the model's JSON.

  • Probed on Copilot CLI 1.0.114, sessionStart. The progress line shows as ● message in text mode, 3 of 3 runs, and never reaches the model.
  • Doc: hooks configuration. The doc says progress lines are stripped before the output is parsed, and that printing them next to a decision object is the intended pattern. Every other mapped event relies on the doc alone.
  • Adapter: generated from parts/host-copilot.js.txt. Tests went red before the change, and each one is mutation-proven.
  • Limits: text mode only, hidden under --silent, absent from the JSON stream, and project hooks run only once the folder is trusted.

The PR also restores the docs/COMPATIBILITY.md edits that #1399 and #1398 lost on merge, when our merge script took next's side of a conflict. That script now stops on such a conflict.

Closes #1349

🤖 Generated with Claude Code

@blafourcade
blafourcade marked this pull request as ready for review November 26, 2026 14:00
@blafourcade
blafourcade requested a review from a team as a code owner November 26, 2026 14:00
@blafourcade
blafourcade merged commit 6f7584c into next Nov 26, 2026
@blafourcade
blafourcade deleted the feat/copilot-person-progress-line branch November 26, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant