fix(designer-v2): Fix Agent Activity tab disabled for MCP-only agent (v5.961)#9198
Merged
rllyy97 merged 1 commit intoMay 20, 2026
Merged
Conversation
…workflows useWorkflowHasAgentLoop checked nodesMetadata for AGENT_CONDITION subgraph types, but MCP client tools (McpClientTool) get MCP_CLIENT subgraph type instead. Workflows with only MCP tools (no regular agent conditions) would never produce an AGENT_CONDITION node, leaving the Agent Activity tab permanently disabled. Changed the selector to check operations for type 'agent', matching the v1 designer's existing implementation. Fixes #9174
lambrianmsft
approved these changes
May 20, 2026
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Keep as-is (optional: include issue number) |
| Commit Type | ✅ | None needed |
| Risk Level | ✅ | None needed |
| What & Why | ✅ | None needed |
| Impact of Change | Add affected file path for clarity | |
| Test Plan | Add a unit test for the selector or justify omission | |
| Contributors | Add contributors or explicitly state none | |
| Screenshots/Videos | ✅ | None needed |
Summary: The PR title and body mostly comply with the template and provide a clear explanation of the bug and fix. The risk level assigned (low) matches the small, focused change in the diff. The primary recommendation is to add a unit test for the selector change (or document why no unit test is present) and optionally list the affected file in Impact of Change and contributors in Contributors.
Please update the PR description with the suggested small additions (unit test or justification, affected file path, contributors) where applicable, then re-submit. Thank you for the clear description and targeted fix!
Last updated: Wed, 20 May 2026 17:03:45 GMT
Contributor
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Type
Risk Level
What & Why
The Agent Activity tab in the designer-v2 run history panel is permanently disabled for workflows where Agent actions only contain MCP client tools (e.g.,
McpClientTool).useWorkflowHasAgentLoopcheckedstate.workflow.nodesMetadatafor nodes withsubgraphType === SUBGRAPH_TYPES.AGENT_CONDITION. However, during deserialization, MCP client tools are assignedSUBGRAPH_TYPES.MCP_CLIENT— notAGENT_CONDITION. Workflows whose Agent actions have only MCP tools never produce anAGENT_CONDITIONnode, so the selector always returnedfalse.Changed the selector to check
state.workflow.operationsfor any operation withtype === 'agent', matching the v1 designer's existing implementation.Also added a flag to force save on the v2 run button.
Fixes #9174
Impact of Change
Test Plan
falseand new selector returnstrue. Verified v1 designer already uses this approach.Contributors
Screenshots/Videos