Skip to content

Remove logic for hiding chat elicitation window for unsandboxed requests#312843

Merged
dileepyavan merged 1 commit into
mainfrom
DileepY/7561
Apr 27, 2026
Merged

Remove logic for hiding chat elicitation window for unsandboxed requests#312843
dileepyavan merged 1 commit into
mainfrom
DileepY/7561

Conversation

@dileepyavan
Copy link
Copy Markdown
Member

@dileepyavan dileepyavan commented Apr 27, 2026

Copilot AI review requested due to automatic review settings April 27, 2026 17:36
@dileepyavan dileepyavan enabled auto-merge (squash) April 27, 2026 17:36
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

Removes the special-casing that auto-approved terminal tool invocations could automatically retry outside the sandbox without showing an elicitation, ensuring the “automatic unsandbox retry” prompt is always shown when applicable.

Changes:

  • Removed requiresConfirmationForRetry plumbing from RunInTerminalTool invocation data and the _confirmAutomaticUnsandboxRetry fast-path.
  • Updated automatic sandbox retry tests to assert the elicitation UI is created even for auto-approved scenarios (by creating a ChatModel/session for the test).
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts Removes the “auto-allow retry” shortcut and always routes through elicitation for unsandbox retry confirmation.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/runInTerminalTool.test.ts Updates tests to validate elicitation creation for auto-approved and confirmation-required cases using a real ChatModel session.

Copilot's findings

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

@dileepyavan dileepyavan merged commit 9e867fd into main Apr 27, 2026
30 checks passed
@dileepyavan dileepyavan deleted the DileepY/7561 branch April 27, 2026 18:10
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 27, 2026
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.

Commands blocked in the sandbox auto-run

3 participants