Skip to content

Don't report using subagent that doesn't exist#292199

Merged
roblourens merged 2 commits intomainfrom
roblou/depressed-dragonfly-main
Feb 2, 2026
Merged

Don't report using subagent that doesn't exist#292199
roblourens merged 2 commits intomainfrom
roblou/depressed-dragonfly-main

Conversation

@roblourens
Copy link
Member

@roblourens roblourens commented Feb 1, 2026

#292196

Ports the changes from PR #292198 to main.

Copilot AI review requested due to automatic review settings February 1, 2026 21:13
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 1, 2026
Copy link
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

This PR fixes issue #292196 by preventing the display of non-existent subagents in the UI. The changes ensure that when an invalid agent name is requested, an error is thrown instead of silently using a fallback, and the actual resolved agent name is used for display instead of the raw input parameter.

Changes:

  • Changed error handling from logging a warning to throwing an error when a requested agent is not found
  • Updated subAgentName to use the resolved mode name instead of the raw agentName parameter
  • Added agent lookup in prepareToolInvocation to support displaying the actual agent name

justschen
justschen previously approved these changes Feb 1, 2026
@justschen
Copy link
Collaborator

looks like some tests failed

@roblourens roblourens merged commit a42fcb8 into main Feb 2, 2026
22 checks passed
@roblourens roblourens deleted the roblou/depressed-dragonfly-main branch February 2, 2026 01:28
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