Skip to content

fix: runInTerminal misses config listeners - #345318

Merged
Raymond Zhao (rzhao271) merged 1 commit into
mainfrom
rzhao271/tough-swordtail
Oct 31, 2026
Merged

Raymond Zhao (rzhao271) merged 1 commit into
mainfrom
rzhao271/tough-swordtail

Conversation

@rzhao271

@rzhao271 Raymond Zhao (rzhao271) commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Following up on #345307

CC Anthony Kim (@anthonykim1).

Copilot AI balanced review requested due to automatic review settings October 31, 2026 00:47
@rzhao271
Raymond Zhao (rzhao271) enabled auto-merge (squash) October 31, 2026 00:47
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Anthony Kim (@anthonykim1)

Matched files:

  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/runInTerminalTool.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the terminal tool metadata refresh triggered by approval-setting changes.

No open issues 🎉

What changed in this PR

Fixes stale run_in_terminal tool metadata after approval settings change, following the default-permission hardening in #345307.

Changes:

  • Refreshes tool registration when default permission, global auto-approval, or terminal auto-approval settings change.
  • Adds regression tests for elevation guidance when approval settings are enabled and disabled, including workspace-sourced change events.
File Description
src/​vs/​workbench/​contrib/​terminalContrib/​chatAgentTools/​test/​electron-browser/​runInTerminalTool.test.ts Tests elevation-guidance refresh across approval-setting changes.
src/​vs/​workbench/​contrib/​terminalContrib/​chatAgentTools/​browser/​terminal.chatAgentTools.contribution.ts Adds approval settings to the tool-registration refresh listener.

Review effort: Balanced

@rzhao271
Raymond Zhao (rzhao271) merged commit 6dcb8de into main Oct 31, 2026
56 checks passed
@rzhao271
Raymond Zhao (rzhao271) deleted the rzhao271/tough-swordtail branch October 31, 2026 00:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.0 milestone Oct 31, 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.

3 participants