Skip to content

agentHost: show fetched URL for web_fetch#318240

Merged
roblourens merged 1 commit into
mainfrom
agents/vsckb-implement-we-need-to-handle-whatever-the-4439a61c
May 26, 2026
Merged

agentHost: show fetched URL for web_fetch#318240
roblourens merged 1 commit into
mainfrom
agents/vsckb-implement-we-need-to-handle-whatever-the-4439a61c

Conversation

@roblourens
Copy link
Copy Markdown
Member

Summary\n- Render Copilot CLI web_fetch invocation and completion messages with the fetched URL\n- Keep a generic URL fallback when the tool arguments do not include a URL\n- Add focused unit coverage for the fetch display behavior\n\n## Validation\n- npm run compile-check-ts-native\n- node --experimental-strip-types build/hygiene.ts src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts src/vs/platform/agentHost/test/node/copilotToolDisplay.test.ts\n- npm run test-node -- --run src/vs/platform/agentHost/test/node/copilotToolDisplay.test.ts\n\n(Written by Copilot)

Render web_fetch invocation and completion messages with the fetched URL instead of falling back to the generic tool display name.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 25, 2026 18:28
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

Updates the agent-host-side Copilot tool display logic so web_fetch tool calls show the fetched URL in both the “invocation” and “completed” messages, improving transparency in the Agent Sessions UI.

Changes:

  • Add web_fetch-specific invocation/completion messages that include a clickable URL when available.
  • Return the URL as the tool input string for web_fetch.
  • Add unit tests covering URL-present and URL-absent fallback behavior.
Show a summary per file
File Description
src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts Adds web_fetch URL-aware formatting for invocation/completion text and tool input.
src/vs/platform/agentHost/test/node/copilotToolDisplay.test.ts Adds focused unit coverage for web_fetch display and fallback behavior.

Copilot's findings

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

Comment thread src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts
@roblourens roblourens marked this pull request as ready for review May 25, 2026 20:09
@roblourens roblourens enabled auto-merge (squash) May 25, 2026 20:09
@roblourens roblourens merged commit 4513fff into main May 26, 2026
26 checks passed
@roblourens roblourens deleted the agents/vsckb-implement-we-need-to-handle-whatever-the-4439a61c branch May 26, 2026 00:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 26, 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