Skip to content

[cherry-pick] Short-circuit getAllChatEndpoints lookup for execution subagent#319483

Merged
bhavyaus merged 1 commit into
release/1.123from
cherry-pick/319474
Jun 2, 2026
Merged

[cherry-pick] Short-circuit getAllChatEndpoints lookup for execution subagent#319483
bhavyaus merged 1 commit into
release/1.123from
cherry-pick/319474

Conversation

@vs-code-engineering
Copy link
Copy Markdown
Contributor

Cherry-pick of #319474 from main.

Addresses Copilot review comment on #319467.

Only call endpointProvider.getAllChatEndpoints() when the execution subagent could actually be enabled — i.e. the current model is GPT/Anthropic and the experiment setting is on. Otherwise the result wouldn't affect the gate, and we skip the potentially expensive endpoint materialization.

Copilot AI review requested due to automatic review settings June 1, 2026 23:39
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Jun 1, 2026
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@bhavyaus bhavyaus enabled auto-merge (squash) June 2, 2026 00:31
@bhavyaus bhavyaus merged commit 2c2baa4 into release/1.123 Jun 2, 2026
25 checks passed
@bhavyaus bhavyaus deleted the cherry-pick/319474 branch June 2, 2026 00:31
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants