Skip to content

fix(call-omo-agent): enforce disabled_agents config#1729

Open
potb wants to merge 2 commits intocode-yeongyu:devfrom
potb:fix/1716-disabled-agents-call-omo
Open

fix(call-omo-agent): enforce disabled_agents config#1729
potb wants to merge 2 commits intocode-yeongyu:devfrom
potb:fix/1716-disabled-agents-call-omo

Conversation

@potb
Copy link
Contributor

@potb potb commented Feb 10, 2026

Closes #1716

disabled_agents config exists but call_omo_agent doesn't check it — disabled agents can still be called.

Threads disabled_agents from plugin config into the tool factory and adds a case-insensitive check before execution.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a 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

@potb potb marked this pull request as draft February 10, 2026 18:08
@potb potb force-pushed the fix/1716-disabled-agents-call-omo branch from 072a4f9 to 5011935 Compare February 10, 2026 18:16
potb added 2 commits February 10, 2026 19:21
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
@potb potb force-pushed the fix/1716-disabled-agents-call-omo branch from 5011935 to cd0949c Compare February 10, 2026 18:23
@potb
Copy link
Contributor Author

potb commented Feb 10, 2026

Working locally, fixes the issue

@potb potb marked this pull request as ready for review February 10, 2026 18:57
Copy link

@cubic-dev-ai cubic-dev-ai bot left a 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

@potb potb changed the title fix(call-omo-agent): enforce disabled_agents config (#1716) fix(call-omo-agent): enforce disabled_agents config Feb 10, 2026
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.

[Bug]: disabled_agents not enforced in call_omo_agent tool — disabled agents can still be spawned

1 participant