fix(delegate): default inherit_mcp_toolsets=true, drop version bump

Follow-up on helix4u's PR #14211:
- Flip default to true: narrowing toolsets=['web','browser'] expresses
  'I want these extras', not 'silently strip MCP'. Parent MCP tools
  (registered at runtime) should survive narrowing by default.
- Drop _config_version bump (22->23); additive nested key under
  delegation.* is handled by _deep_merge, no migration needed.
- Update tests to reflect new default behavior.
This commit is contained in:
Teknium 2026-04-22 17:44:52 -07:00 committed by Teknium
parent 3e96c87f37
commit 7d8b2eee63
4 changed files with 37 additions and 35 deletions

View file

@ -379,7 +379,7 @@ def _get_orchestrator_enabled() -> bool:
def _get_inherit_mcp_toolsets() -> bool:
"""Whether narrowed child toolsets should keep the parent's MCP toolsets."""
cfg = _load_config()
return is_truthy_value(cfg.get("inherit_mcp_toolsets"), default=False)
return is_truthy_value(cfg.get("inherit_mcp_toolsets"), default=True)
def _is_mcp_toolset_name(name: str) -> bool: