Skip to content

Render native lexical code search in Agent Host - #351282

Draft
Timothy Clem (tclem) wants to merge 5 commits into
microsoft:mainfrom
tclem:tclem/adopt-lexical-code-search
Draft

Timothy Clem (tclem) wants to merge 5 commits into
microsoft:mainfrom
tclem:tclem/adopt-lexical-code-search

Conversation

@tclem

@tclem Timothy Clem (tclem) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The Copilot runtime can surface native lexical_code_search through its GitHub code-search compatibility selectors. Agent Host currently renders those calls as generic tools, losing search grouping and query summaries. This classifies the native tool as search and reuses the existing query-aware code-search messages.

  Generated via Copilot (GPT-5.6 Sol) on behalf of Timothy Clem (@tclem)

Copilot AI balanced review requested due to automatic review settings November 30, 2026 18:29

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.

🟡 Changes recommended

The newly allowed lexical_code_search tool lacks search classification and query-aware display mappings, leaving VS Code host calls without search grouping or query summaries.

1 open issue
What changed in this PR

This PR prepares Agent Host for the Copilot runtime’s replacement of GitHub MCP search_code with native lexical_code_search, preserving access to exact-text code search.

Changes:

  • Adds lexical_code_search to the built-in tool allow-list.
  • Records that the bundled runtime exposes it only behind an experiment, keeping the integration guard compatible.
File Description
src/​vs/​platform/​agentHost/​test/​node/​providerIntegration/​copilotBuiltinToolAllowlist.integrationTest.ts Exempts experiment-gated lexical search from required runtime coverage.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotBuiltinToolAllowlist.ts Allows native lexical code search in Agent Host sessions.

Review effort: Balanced

@tclem Timothy Clem (tclem) changed the title Adopt native lexical code search in Agent Host Render native lexical code search in Agent Host Nov 30, 2026

This branch has not been deployed

No deployments
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.

2 participants