includeCoAuthoredBy: false is not inherited by task subagents; their commits still get the Co-authored-by trailer
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Describe the bug
includeCoAuthoredBy: false in ~/.copilot/settings.json is respected by the interactive session, but is not inherited by task-tool subagents. Commits created by subagents still get the Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> trailer.
This is a follow-up to #3181, which added the opt-out. The setting works for the main session — it just doesn't reach spawned subagents.
Beyond silently ignoring the setting, subagents appear to be told the trailer is mandatory. During a plan-execution run, one subagent amended an otherwise-finished commit purely to add it, and logged:
note: amended cleanup commit to <sha> to add the required Co-authored-by trailer; no file changes.
That "required" wording suggests the subagent's system prompt carries the coauthor instruction unconditionally, rather than gated on coauthorEnabled.
Affected version
GitHub Copilot CLI 1.0.80
Steps to reproduce the behavior
- Set the opt-out in
~/.copilot/settings.json:{ "includeCoAuthoredBy": false } - Start an interactive session in a git repo.
- Ask the main session to make a commit directly (e.g. via a shell
git commit). ✅ No trailer — setting respected. - Now delegate committing work to a subagent, e.g. via the
tasktool withagent_type: "general-purpose", instructing it to implement a change, commit it, and stop. - Inspect the resulting commit:
git log -1 --format='%b' - ❌ The message contains
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>.
In my case 8/8 commits created by subagents carried the trailer, while every commit made directly from the main session had none. Stripping them across the branch required:
git rebase <base> --exec "git log -1 --pretty=%B | grep -v '^Co-authored-by:' | git commit --amend --quiet -F -"
Expected behavior
includeCoAuthoredBy: false should apply to all commits produced by the CLI, including those created by subagents — the setting reads as global, not session-scoped.
Additional context
- The setting key itself is correct and current:
app.jscomputescoauthorEnabled: T.includeCoAuthoredBy !== false, andincludeCoAuthoredBy?: booleanis declared insdk/index.d.ts. (The changelog entry for #3181 calls itinclude_coauthor, which no longer matches the settings.json key — minor doc drift, possibly worth fixing too.) - Ruled out as causes in my repo: no git hooks,
core.hooksPathunset, andcommit.templatepointed at an empty file. Rawgit commitfrom the main session never adds the trailer. settings.jsonhadincludeCoAuthoredBy: falsefor ~2 weeks before the affected session, so this isn't a case of the setting being applied late.- Environment: macOS 26.5.2, arm64, zsh, iTerm2/agterm.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
coauthorEnabled が計算される app.js と、includeCoAuthoredBy が宣言される sdk/index.d.ts から始めます。task-tool のサブエージェントが設定と coauthor の指示をどのように受け取るかを追跡し、次に includeCoAuthoredBy を false に設定して再現し、git log を調べます。無効時にサブエージェントが作成したコミットで trailer が省略され、デフォルトの動作は有効なままであれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, shell
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100