Skip to content

agentHost: preserve search icon while streaming - #333925

Merged
roblourens merged 1 commit into
microsoft:mainfrom
roblourens:agents/search-tool-codicon-issue-investigation
Sep 2, 2026
Merged

agentHost: preserve search icon while streaming#333925
roblourens merged 1 commit into
microsoft:mainfrom
roblourens:agents/search-tool-codicon-issue-investigation

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary

  • preserve search-specific rendering data when an Agent Host tool invocation begins in the streaming state
  • prevent normal rg text searches from briefly showing the generic tool codicon before becoming ready
  • add regression coverage for the streaming search lifecycle

Testing

  • npm run transpile-client
  • npm run eslint -- src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/stateToProgressAdapter.ts src/vs/workbench/contrib/chat/test/browser/agentSessions/stateToProgressAdapter.test.ts
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/agentSessions/stateToProgressAdapter.test.ts (144 passing)

(Written by Copilot)

Initialize search-specific rendering data when a streaming tool invocation is created so text searches do not briefly use the generic tool icon. Add regression coverage for rg calls before they become ready.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 2, 2026 01:37

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.

Copilot review overview

🟢 Approval recommended

The focused lifecycle fix is consistent with existing ready and completed search handling and has direct regression coverage.

Review tier: Balanced
Findings: None

What changed in this PR

Preserves search-specific rendering during Agent Host tool-call streaming, preventing temporary generic tool icons.

Changes:

  • Assigns search tool metadata when creating streaming invocations.
  • Adds regression coverage for streaming rg searches.
File Description
stateToProgressAdapter.ts Initializes streaming searches with search-specific rendering data.
stateToProgressAdapter.test.ts Verifies search metadata is preserved before readiness.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roblourens
roblourens merged commit 79f132e into microsoft:main Sep 2, 2026
30 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 2, 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