Skip to content

Revert "Fix terminal command edits ignored in two-step confirmation flow"#310700

Merged
bpasero merged 3 commits intomainfrom
revert-309908-copilot/fix-terminal-command-ignores-edits
Apr 16, 2026
Merged

Revert "Fix terminal command edits ignored in two-step confirmation flow"#310700
bpasero merged 3 commits intomainfrom
revert-309908-copilot/fix-terminal-command-ignores-edits

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Apr 16, 2026

Reverts #309908

Copilot AI review requested due to automatic review settings April 16, 2026 10:38
@bpasero bpasero self-assigned this Apr 16, 2026
@bpasero bpasero added this to the 1.117.0 milestone Apr 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 688c0b7d Current: 0987257c

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
agentSessionsViewer/NeedsInput/Light
Before After
before after

@bpasero bpasero enabled auto-merge (squash) April 16, 2026 10:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reverts the earlier change that propagated user-edited terminal commands through the ConfirmTerminalCommandTool result, restoring the prior “simple confirmation” behavior for the two-step terminal confirmation flow.

Changes:

  • Simplifies ConfirmTerminalCommandTool.invoke() to return a basic 'yes' confirmation result.
  • Removes tests that asserted the tool returns edited-command messaging and tags.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/runInTerminalTool.test.ts Removes ConfirmTerminalCommandTool.invoke() behavior assertions that depended on propagating edited commands.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.ts Reverts edited-command handling; makes the confirmation tool return a minimal 'yes' result.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

@bpasero bpasero merged commit 3267a57 into main Apr 16, 2026
26 checks passed
@bpasero bpasero deleted the revert-309908-copilot/fix-terminal-command-ignores-edits branch April 16, 2026 16:03
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.

4 participants