Conversation
Resolve cluster elements recursively so tools nested inside an AI agent tool (e.g. hubspot_1 inside aiAgent_tool_1) are found by both option and display-condition facades. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes resolution of cluster elements nested inside other cluster elements (notably tools nested inside an AI Agent tool) so they can be discovered consistently by facades that rely on cluster-element lookup.
Changes:
- Added recursive nested lookup to
ClusterElementMap.getClusterElement(...)so nested cluster elements can be resolved by workflow node name. - Updated option resolution to include input-parameter evaluation for nested cluster elements (so options can resolve dependencies across nested tools).
- Added unit tests for nested resolution in
ClusterElementMapand wired the API module’s test dependency needed for the new test.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.../WorkflowNodeParameterFacadeImpl.java |
Adjusts cluster element map resolution to traverse nested CLUSTER_ELEMENTS recursively. |
.../WorkflowNodeOptionFacadeImpl.java |
Recursively aggregates evaluated parameters for nested cluster elements. |
.../ClusterElementMapTest.java |
Adds tests covering direct and nested cluster element resolution + missing element behavior. |
.../ClusterElementMap.java |
Implements recursive nested search for cluster elements within cluster element extensions. |
.../platform-configuration-api/build.gradle.kts |
Adds test-support dependency required by the new API test. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ution Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
bug in question is fixed. it leads us to the next one :). When initiating chat and telling it to call the nested tool I get this error: |
|



Resolve cluster elements recursively so tools nested inside an AI agent
tool (e.g. hubspot_1 inside aiAgent_tool_1) are found by both option and
display-condition facades.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com