Skip to content

Tool confirmation improvements#247182

Merged
connor4312 merged 7 commits intomainfrom
connor4312/mcp-tool-ux
Apr 25, 2025
Merged

Tool confirmation improvements#247182
connor4312 merged 7 commits intomainfrom
connor4312/mcp-tool-ux

Conversation

@connor4312
Copy link
Member

@connor4312 connor4312 commented Apr 23, 2025

This adopts the suggested improvements and closes #246287

  • Adds the MCP server link in the title of confirmations
  • Adds a "see more" option for inputs. I opted to deviate a little bit and have the non-"see more" mode have the JSON all on one line, otherwise we only would ever show an opening curly { which is not useful
  • Rework the output, and show the two editors for input and output matching the design. I specialized from the ChatCollapsibleEditorContentPart which I think is necessary overall when MCP starts supporting images.
  • ❓ the new designs have the progress indicator for the tools on the right side, while other indicators remain on the left side. For that reason I made the new part support showing progress there too, but this is different than e.g. the normal "working" indicator. @hawkticehurst not sure if this is intentional or what you're thinking is there.
25-04-701fa10f-39ee-4b1c-8da8-7a61f7e62c9c.1.mp4

@roblourens
Copy link
Member

I was just trying this, and if I cancel a tool call, I'm stuck with a spinner
image

@roblourens
Copy link
Member

LGTM- this fixes https://github.com/microsoft/vscode-copilot/issues/15652, thanks!

@connor4312 connor4312 marked this pull request as ready for review April 25, 2025 21:52
@connor4312 connor4312 enabled auto-merge April 25, 2025 21:52
@vs-code-engineering vs-code-engineering bot added this to the April 2025 milestone Apr 25, 2025
@connor4312 connor4312 merged commit c0af228 into main Apr 25, 2025
8 checks passed
@connor4312 connor4312 deleted the connor4312/mcp-tool-ux branch April 25, 2025 22:05
bhavyaus pushed a commit that referenced this pull request Apr 27, 2025
* chat: include origin MCP server with tool call confirmation

Refs #246287

* chat: add 'see more' to confirmation widget input

* tools: adopt new styling for tools from #246287

* tools: add indicator when mcp tool calls fail

Fixes #246563

* chat: keep tool widget expansion state on re-render

* tweak some margin and sizing
NikolaRHristov pushed a commit to CodeEditorLand/Editor that referenced this pull request Apr 30, 2025
* chat: include origin MCP server with tool call confirmation

Refs microsoft#246287

* chat: add 'see more' to confirmation widget input

* tools: adopt new styling for tools from microsoft#246287

* tools: add indicator when mcp tool calls fail

Fixes microsoft#246563

* chat: keep tool widget expansion state on re-render

* tweak some margin and sizing
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jun 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP Tool Dropdown UX Improvements

3 participants