feat(extensibility): added isActiveFilter in UMS - #328
Open
yashmeet29 wants to merge 2 commits into
Open
Conversation
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.
Description
Change the isActive filter in the UMS transport layer to require extensions to be explicitly active before they are included in the agent's capability set.
Only extensions with isActive: true in UMS are returned by get_extension_capability_implementation(). Extensions with isActive: false or without the field are excluded.
Updated all affected unit test fixtures and inline test nodes accordingly.
Related Issue
Closes #<issue_number>
(Link to the GitHub issue this PR addresses)
Type of Change
Please check the relevant option:
How to Test
End-to-end via agent behavior
Prerequisites: an agent configured with UmsTransport, connected to a UMS instance with at least one extension.
Active extension is visible — Ensure the extension is activated (isActive: true in UMS). Start the agent and interact with it using a task that would invoke one of the extension's tools. Verify the tool is executed successfully and the extension contributes to the agent's response.
Deactivated extension is hidden — Deactivate the extension via the deactivate API. Repeat the same task. Verify the agent no longer uses the extension's tools and responds as if the extension does not exist.
Legacy extension without isActive is hidden (breaking change) — If a UMS record exists without the isActive field (published before activate/deactivate was introduced), the agent should behave as if that extension is not registered. Re-deploying or activating the extension will restore its visibility.
Re-activation restores visibility — Activate the extension again. Restart or allow the agent's UMS cache to expire, then repeat the task. Verify the extension's tools are available to the agent again.
Checklist
Before submitting your PR, please review and check the following:
Breaking Changes
Additional Notes