Skip to content

Allow semantic search toggle for search subagent - #333869

Merged
Anisha Agarwal (24anisha) merged 3 commits into
mainfrom
anisha/semantic_search_flag
Sep 2, 2026
Merged

Allow semantic search toggle for search subagent#333869
Anisha Agarwal (24anisha) merged 3 commits into
mainfrom
anisha/semantic_search_flag

Conversation

@24anisha

Copy link
Copy Markdown
Contributor

Due to detected potential unreliability with the semantic search tool, we gate the availability of semantic search only for the Search subagent behind a feature flag.

Default behavior always makes semantic search available.

Copilot AI balanced review requested due to automatic review settings September 1, 2026 21:20

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

🟡 Changes recommended

The public setting name should be corrected before release, and the test should use typed dependency injection.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 2 Low severity

New issues introduced by this change (2)
Severity Finding
Low severity extensions/​copilot/​package.json — Rename this setting before it becomes a public configuration API. The searchSubagent scope…
Low severity extensions/​copilot/​src/​extension/​prompt/​test/​node/​searchSubagentToolCallingLoop.spec.ts — Inject a typed IToolsService test double into serviceCollection before creating the accessor…
What changed in this PR

Adds an experimental toggle controlling semantic search availability within the Search subagent.

Changes:

  • Adds a default-enabled configuration setting.
  • Filters semantic search from subagent tools when disabled.
  • Adds localization and unit coverage.
File Description
configurationService.ts Defines the experiment-based setting.
searchSubagentToolCallingLoop.ts Conditionally enables semantic search.
searchSubagentToolCallingLoop.spec.ts Tests enabled and disabled behavior.
package.nls.json Adds the setting description.
package.json Contributes the public setting.

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

Comment thread extensions/copilot/package.json
@24anisha
Anisha Agarwal (24anisha) merged commit 5917dcc into main Sep 2, 2026
41 of 62 checks passed
@24anisha
Anisha Agarwal (24anisha) deleted the anisha/semantic_search_flag branch September 2, 2026 22:01
@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.

5 participants