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
Terminal auto-approval allows git show file output without confirmation #329029
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-auto-approveRelated to the terminal's auto approve logicverifiedVerification succeeded
Terminal auto-approval treats git show as a read-only command, but git show can write directly to a file through its --output option:
git show --format=%B --output=message.txt HEAD
git show --output message.txt HEAD
Because --output is a Git option rather than a shell redirect, it does not produce a tree-sitter file_redirect node. The write-destination check is therefore not consulted, and the command can be auto-approved.
The existing default rules already require confirmation for git log --output, but not for the equivalent git show option.
Expected
git show --output=<path> and git show --output <path> require confirmation in both workbench and Agent Host terminal auto-approval.
Plain git show, git show --format=..., and similarly named options remain auto-approved.
Workbench and Agent Host use the same default Git rule definitions.
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-auto-approveRelated to the terminal's auto approve logicverifiedVerification succeeded
Activity
vritant24 commentedon Aug 10, 2026
verified with the following settings in the workspace: