You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agents Window should respect git.enableCommitSigning #334495
When git.enableCommitSigning is enabled, commits created through the Source Control view are signed, but commits created by an agent in the Agents Window are not.
Steps to reproduce
Configure a signing key in Git.
Enable git.enableCommitSigning in VS Code.
Create a commit through the Source Control view and confirm that it is signed.
Ask an agent in the Agents Window to create a commit.
Inspect the resulting commit signature.
Actual behavior
The agent-created commit is unsigned. Agents invoke the Git CLI, where user.signingKey selects a key but does not enable signing unless commit.gpgSign is also configured or git commit -S is used. The VS Code git.enableCommitSigning setting is therefore not observed by the Agents Window.
This also affects agent-driven operations that rewrite commits, such as resolving conflicts through a rebase: the recreated commits remain unsigned.
Expected behavior
Git operations initiated by the Agents Window should observe git.enableCommitSigning, so commits created or rewritten by an agent are signed consistently with commits created through the Source Control view.
Alternatively, the Agents Window should expose an equivalent signing policy and clearly explain how it relates to git.enableCommitSigning and Git\u2019s commit.gpgSign configuration.
The Copilot session by default in VS Code's GitHub Copilot Chat has been the most frustrating new behavior ever. It results in unsigned commits and the entire session not being able to interact with the GitHub Codespace or the VS Code window. Users should be able to set up their default behavior and have it stick, but this one is entirely impossible right now.
From my research, this is what I've been able to dig up:
There is no documented setting that restricts Copilot Chat to Local only, and nobody has reported a complete fix. I found three partial controls and a few related open issues. I searched microsoft/vscode and github/copilot-cli, and I couldn't search GitHub-wide because gh isn't authenticated in this session.
The reporter confirms you can hide Cloud, Claude and Codex with these settings: github.copilot.chat.cloudAgent.enabled: false chat.agentHost.claudeAgent.enabled: false chat.agentHost.codexAgent.enabled: false
No setting hides the built-in Copilot session type (agent-host-copilotcli). That is the one that can't sign commits for you. github.copilot.chat.backgroundAgent.enabled: false only affects the session list, not the picker.
The reporter's analysis says Local is hardcoded and the Copilot entry is registered with no gating condition.
The only workaround they found is injecting CSS into VS Code's shipped workbench.html, which is unsupported and breaks on every update.
Other issues that match your situation:
microsoft/vscode#343575 (open): New chats now default to the Copilot harness. Its agents fall back to a separate shell and fail where Local works. The reporter asks for documentation on keeping Local as the default, and there is no maintainer reply yet. microsoft/vscode#341462 (open, assigned): Copilot CLI sessions can't use the visible VS Code terminals. This is the isolation you described. microsoft/vscode#316791 (open): git commit hangs in the Agents App bash tool when SSH signing is on. The cause is that GIT_ASKPASS and the related variables aren't set. This is related to your Secretive setup, but it was reported for the Agents App, not Codespaces. microsoft/vscode#334495 (open): The Agents Window should respect git.enableCommitSigning. microsoft/vscode#334499 (open): This shows Copilot CLI can be disabled by an organization policy. VS Code still starts the CLI component and shows a sign-in popup, so the policy doesn't fully remove it.
I found no report specifically about Codespaces signing failing in Copilot CLI sessions, and no github/copilot-cli issue on it.
What you can do today:
Org policy: An org owner can disable Copilot CLI under the organization's Copilot settings. Based on #334499, it blocks the sessions from working, but I haven't confirmed it removes the picker entry.
Settings: Put the three settings above in your Codespaces default settings or dotfiles. That narrows the picker to Local plus Copilot.
Instructions: Add a rule to AGENTS.md so agents never run git commit or git push. It's soft enforcement but works in every session type.
I reproduced this on Insiders 1.147.0-insider (944d79c), on macOS, in the Agents window:
The repo has an SSH signing key in its git config (gpg.format ssh, user.signingkey), with no commit.gpgSign. git.enableCommitSigning is on.
A commit made by hand with -S is signed (G).
I asked the agent to run git add agent.txt && git commit -m "agent commit". The commit it made is unsigned (N).
The agent host's own checkpoint commits ("baseline checkpoint", "turn 1 start", "turn 1") are unsigned too.
Today only the Git extension's commit command reads git.enableCommitSigning (extensions/git/src/commands.ts), so nothing on the agent side picks it up.
Activity
petersonjdNIH commentedon Oct 31, 2026
The Copilot session by default in VS Code's GitHub Copilot Chat has been the most frustrating new behavior ever. It results in unsigned commits and the entire session not being able to interact with the GitHub Codespace or the VS Code window. Users should be able to set up their default behavior and have it stick, but this one is entirely impossible right now.
From my research, this is what I've been able to dig up:
There is no documented setting that restricts Copilot Chat to Local only, and nobody has reported a complete fix. I found three partial controls and a few related open issues. I searched microsoft/vscode and github/copilot-cli, and I couldn't search GitHub-wide because gh isn't authenticated in this session.
The gap: microsoft/vscode#342291 (open)
The reporter confirms you can hide Cloud, Claude and Codex with these settings:
github.copilot.chat.cloudAgent.enabled: falsechat.agentHost.claudeAgent.enabled: falsechat.agentHost.codexAgent.enabled: falseNo setting hides the built-in Copilot session type (
agent-host-copilotcli). That is the one that can't sign commits for you.github.copilot.chat.backgroundAgent.enabled: falseonly affects the session list, not the picker.The reporter's analysis says Local is hardcoded and the Copilot entry is registered with no gating condition.
The only workaround they found is injecting CSS into VS Code's shipped workbench.html, which is unsupported and breaks on every update.
Other issues that match your situation:
microsoft/vscode#343575 (open): New chats now default to the Copilot harness. Its agents fall back to a separate shell and fail where Local works. The reporter asks for documentation on keeping Local as the default, and there is no maintainer reply yet.
microsoft/vscode#341462 (open, assigned): Copilot CLI sessions can't use the visible VS Code terminals. This is the isolation you described.
microsoft/vscode#316791 (open): git commit hangs in the Agents App bash tool when SSH signing is on. The cause is that GIT_ASKPASS and the related variables aren't set. This is related to your Secretive setup, but it was reported for the Agents App, not Codespaces.
microsoft/vscode#334495 (open): The Agents Window should respect git.enableCommitSigning.
microsoft/vscode#334499 (open): This shows Copilot CLI can be disabled by an organization policy. VS Code still starts the CLI component and shows a sign-in popup, so the policy doesn't fully remove it.
I found no report specifically about Codespaces signing failing in Copilot CLI sessions, and no github/copilot-cli issue on it.
What you can do today:
Org policy: An org owner can disable Copilot CLI under the organization's Copilot settings. Based on #334499, it blocks the sessions from working, but I haven't confirmed it removes the picker entry.
Settings: Put the three settings above in your Codespaces default settings or dotfiles. That narrows the picker to Local plus Copilot.
Instructions: Add a rule to AGENTS.md so agents never run git commit or git push. It's soft enforcement but works in every session type.
alexdima commentedon Nov 28, 2026
I reproduced this on Insiders 1.147.0-insider (944d79c), on macOS, in the Agents window:
gpg.format ssh,user.signingkey), with nocommit.gpgSign.git.enableCommitSigningis on.-Sis signed (G).git add agent.txt && git commit -m "agent commit". The commit it made is unsigned (N).Today only the Git extension's commit command reads
git.enableCommitSigning(extensions/git/src/commands.ts), so nothing on the agent side picks it up.i334495-agent-commit-unsigned.mp4
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).