Repository navigation
Agent suggestions
Public previewDescription
Environment
- VS Code: 1.140.0 stable
- Commit:
07f806f999227108933c2e30515b26eecc1fda74 - Build date:
2026-09-30T10:38:38+02:00
- Commit:
- OS: Windows 11 x64, build 26200 (
Windows_NT 10.0.26200) - Agent Host runtime:
@github/copilot 1.0.89-7 - Copilot SDK:
@github/copilot-sdk 1.0.15-preview.4 - Bundled copilot-chat extension: 0.68.0
- Feature: Agent / Agent Host
The Agent Host runtime versions above are reported by VS Code's About dialog from
product.json -> copilotVersions and match the active runtime:
COPILOT_CLI_VERSION = 1.0.89-7 in node_modules.asar and
client_version=1.0.89-7&copilot_runtime_version=1.0.89-7 in the runtime log.
The copilot-chat extension also contains an older bundled
@github/copilot 1.0.73 dependency. That copy is not the runtime serving the
reproduced Agent Host session and is not used as evidence for the conclusions below.
Summary
includeCoAuthoredBy: false in %USERPROFILE%\.copilot\settings.json is not honored by VS Code Agent Host sessions.
Even with both the current setting and the legacy alias explicitly disabled:
{
"include_coauthor": false,
"includeCoAuthoredBy": false
}new Agent Host sessions still receive the <git_commit_trailer> system-prompt section:
<git_commit_trailer>
When creating git commits, include the following Co-authored-by trailer at the end of the commit message, unless the user explicitly asks you not to include it:
Co-authored-by: Copilot <[email protected]>
</git_commit_trailer>
As a result, commits created by the agent still contain:
Co-authored-by: Copilot <[email protected]>
The exact same setting is honored by the standalone Copilot CLI.
This strongly suggests that the problem is not the settings file itself, but a missing settings → session-option mapping in the VS Code Agent Host integration.
Steps to Reproduce
-
Create or edit:
%USERPROFILE%\.copilot\settings.jsonand explicitly disable both forms of the setting:
{ "include_coauthor": false, "includeCoAuthoredBy": false } -
Ensure there is no repository-level override:
- no
.github/copilot/settings.json - no
.github/copilot/settings.local.json
- no
-
Ensure there is no managed/enterprise override.
Runtime log in my case reports:
[managedSettings] effective policy resolved: source=none -
Ensure no Git hook is adding the trailer:
core.hooksPathis unset/default.git/hookscontains only sample hooks
-
Restart VS Code and create a fresh Agent Host session.
-
Ask the agent to stage and commit a change.
-
Inspect the resulting commit message.
Alternatively, inspect the system prompt supplied to the session: the <git_commit_trailer> section is still present.
Expected Behavior
With:
"includeCoAuthoredBy": falsethe Agent Host should not inject the <git_commit_trailer> system-prompt section, and agent-created commits should not contain a Copilot co-author trailer.
This should behave consistently with the standalone Copilot CLI.
If VS Code intentionally does not support this Copilot setting, then it should expose an equivalent supported Agent Host setting instead of silently ignoring the existing setting.
Actual Behavior
Every fresh VS Code Agent Host session still receives the trailer instruction, and commits created by the agent include:
Co-authored-by: Copilot <[email protected]>
This happens despite the relevant settings being explicitly set to false.
For completeness, VS Code's own Git setting is also disabled:
"git.addAICoAuthor": "off"This therefore does not appear to be caused by the regular VS Code Git attribution mechanism.
Why this is particularly problematic
This is not just a cosmetic UI preference.
The setting controls persistent Git commit metadata. When a user explicitly disables AI attribution, silently injecting the opposite instruction at system-prompt priority means that the user's configuration is effectively overridden by an internal prompt that they cannot normally inspect or control.
That is especially surprising because the generated system prompt itself says:
unless the user explicitly asks you not to include it
In other words, the runtime is capable of suppressing the trailer, but the persisted configuration intended to express exactly that preference is apparently not propagated into Agent Host sessions.
I find this behavior quite frustrating. A user should not have to repeatedly tell every individual agent session not to modify permanent Git history after already disabling the relevant setting globally.
More importantly, a setting named includeCoAuthoredBy: false should not result in a system-level instruction telling the agent to include a co-author trailer anyway.
Local Build Inspection / Evidence
I inspected the VS Code 1.140.0 installation locally. The implementation appears to have a clear integration gap.
1. @github/copilot-sdk supports coauthorEnabled, but VS Code never appears to populate it from Copilot settings
In:
resources/app/node_modules.asar
the application layer contains logic similar to:
async updateSessionOptionsForMode(session, config) {
const patch = {};
if (this.options.mode === "empty") {
...
patch.coauthorEnabled = config.coauthorEnabled ?? false;
...
} else {
...
if (config.coauthorEnabled !== void 0)
patch.coauthorEnabled = config.coauthorEnabled;
...
}
...
}However, includeCoAuthoredBy does not occur anywhere in this bundle.
So the SDK has a session option capable of controlling this behavior, but there does not appear to be any mapping from the user-facing setting to that option in the VS Code path.
2. VS Code itself contains no apparent mapping either
I searched:
resources/app/out/vs/workbench/workbench.desktop.main.js
resources/app/extensions/copilot/dist/extension.js
for:
coauthorEnabled
includeCoAuthoredBy
include_coauthor
and found zero relevant occurrences.
The only unrelated "coauthor" reference in the workbench is the normal Git setting:
git.addAICoAuthor
which is already set to off.
3. The standalone Copilot CLI does perform the mapping
In the standalone CLI application:
%USERPROFILE%\.copilot\pkg\win32-x64\<version>\app.js
there is an explicit mapping:
coauthorEnabled: Vo.include_coauthor !== !1,Therefore:
include_coauthor = false
↓
coauthorEnabled = false
↓
git trailer suppressed
This is consistent with observed CLI behavior.
I cannot find an equivalent mapping in the VS Code Agent Host path.
4. The native runtime contains both the setting schema and the prompt template
The bundled native runtime:
resources/app/node_modules.asar.unpacked/
@github/copilot-sdk-win32-x64/
prebuilds/win32-x64/runtime.node
contains the settings schema entry:
{
"path": "includeCoAuthoredBy",
"leafKind": "boolean",
"description": "Add a Co-authored-by trailer to commits."
}It also contains the prompt template:
<git_commit_trailer>
When creating git commits, include the following Co-authored-by trailer at the end of the commit message, unless the user explicitly asks you not to include it:
Co-authored-by: Copilot <[email protected]>
</git_commit_trailer>
So the runtime clearly has native support for this behavior and knows about the corresponding setting.
The missing piece appears to be the propagation of that setting into the VS Code Agent Host session configuration.
5. VS Code launches the runtime directly
The Agent Host session uses:
copilot-runtime.exe
--headless
--no-auto-update
--log-level info
--stdio
--no-auto-login
--remote
Executable:
...\node_modules.asar.unpacked\
@github\copilot-sdk-win32-x64\
prebuilds\win32-x64\
copilot-runtime.exe
Parent process:
Code.exe --type=utility --utility-sub-type=node.mojom.NodeService
Therefore the standalone CLI application layer — which contains the include_coauthor → coauthorEnabled mapping — is not involved in the VS Code Agent Host path.
This matches the observed behavior.
Suspected Cause
The behavior appears to be approximately:
Standalone Copilot CLI:
settings.json
↓
include_coauthor / includeCoAuthoredBy
↓
coauthorEnabled
↓
Copilot runtime
↓
<git_commit_trailer> conditionally omitted
while VS Code Agent Host appears to be:
settings.json
↓
[mapping missing]
↓
coauthorEnabled remains unset/default
↓
Copilot runtime
↓
<git_commit_trailer> emitted
In other words, VS Code seems to instantiate the Copilot SDK/runtime without forwarding the user's co-author preference into the session options.
Workaround
The only reliable workaround I have found is to explicitly tell each agent not to add the trailer.
That works because the injected system prompt contains the carve-out:
unless the user explicitly asks you not to include it
Alternatively, the trailer can be stripped with a Git hook before the commit is finalized.
Neither workaround should be necessary when the global preference has already been explicitly disabled.
Requested Fix
Please propagate the Copilot co-author preference into Agent Host session options, e.g. conceptually:
coauthorEnabled = settings.includeCoAuthoredBy;with support for the legacy alias if required.
At minimum:
includeCoAuthoredBy: false
should guarantee that the <git_commit_trailer> system-prompt section is not injected into newly created VS Code Agent Host sessions.
It would also be preferable for VS Code's:
git.addAICoAuthor = off
and Copilot Agent Host attribution behavior to eventually have clearly documented and consistent semantics, because at present there are multiple independent attribution mechanisms affecting the same Git commit metadata.
Activity