Skip to content

Fix unescaped icon and undefined text in terminal tool confirmations#311037

Merged
meganrogge merged 2 commits intomainfrom
merogge/chat-term-f
Apr 17, 2026
Merged

Fix unescaped icon and undefined text in terminal tool confirmations#311037
meganrogge merged 2 commits intomainfrom
merogge/chat-term-f

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

Fixes #309505
Fixes #304351

  • Remove $(terminal) ThemeIcon from the send_to_terminal Focus Terminal markdown link, which rendered as literal text
  • Provide fallback strings when explanation/goal are undefined in run_in_terminal confirmation messages
  • Add tests for send_to_terminal confirmation behavior

Copilot AI review requested due to automatic review settings April 17, 2026 16:15
@meganrogge meganrogge self-assigned this Apr 17, 2026
@meganrogge meganrogge added this to the 1.117.0 milestone Apr 17, 2026
@meganrogge meganrogge enabled auto-merge (squash) April 17, 2026 16:15
@meganrogge
Copy link
Copy Markdown
Collaborator Author

cc @anthonykim1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

Screenshot Changes

Base: 27bc1e25 Current: 47344bbd

Changed (1)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

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

Fixes confirmation/markdown rendering issues in the terminal chat agent tools by removing an unescaped codicon from a command link and ensuring confirmation messages don’t surface undefined when optional fields are missing.

Changes:

  • Remove $(terminal) from the “Focus Terminal” markdown link in send_to_terminal confirmation messaging.
  • Add localized fallback text when explanation / goal are missing in run_in_terminal confirmation messages.
  • Add/extend tests covering send_to_terminal confirmation behavior and auto-approve behavior.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/runInTerminalTool.test.ts Adds a regression test intended to ensure “undefined” doesn’t appear in confirmations when explanation/goal are missing.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/sendToTerminalTool.test.ts Adds tests for confirmation behavior in default vs auto-approve permission levels and for the “Focus Terminal” link text.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.ts Removes $(terminal) from the “Focus Terminal” link label to avoid literal rendering.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts Introduces localized fallback strings for missing explanation/goal in confirmation messages.

Copilot's findings

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

@meganrogge meganrogge merged commit 251d099 into main Apr 17, 2026
26 checks passed
@meganrogge meganrogge deleted the merogge/chat-term-f branch April 17, 2026 17:21
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.

Input has an unescaped $(icon) in the title Run undefined command in zsh

3 participants