-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(call-omo-agent): enforce disabled_agents config #1729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Cannot be 100% sure of no regressions. Dependency bump from 3.3.1 to 3.5.0 is a minor version jump with unknown breaking changes. Native binary deps require runtime testing across all platforms (darwn
072a4f9 to
5011935
Compare
Closes code-yeongyu#1716 ## Summary - Added 4 tests for disabled_agents validation in call_omo_agent tool - Tests verify agent rejection when in disabled_agents list - Tests verify case-insensitive matching - Tests verify agents not in disabled list are allowed - Tests verify empty disabled_agents allows all agents
## Summary - Added disabled_agents parameter to createCallOmoAgent factory - Check runs after ALLOWED_AGENTS validation, before agent execution - Case-insensitive matching consistent with existing patterns - Clear error message distinguishes 'disabled' from 'invalid agent type' - Threaded disabledAgents config into tool factory from pluginConfig ## Changes - tools.ts: Add disabledAgents parameter and validation check - tool-registry.ts: Pass pluginConfig.disabled_agents to factory
5011935 to
cd0949c
Compare
|
Working locally, fixes the issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Simple, focused change: adds disabled_agents filter to callOmoAgent with proper case-insensitive matching. Includes comprehensive test coverage (102 lines) verifying disabled, case-insensitive,Allowed
Closes #1716
disabled_agentsconfig exists butcall_omo_agentdoesn't check it — disabled agents can still be called.Threads
disabled_agentsfrom plugin config into the tool factory and adds a case-insensitive check before execution.