Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/tools/test_delegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_empty_context_ignored(self):

class TestStripBlockedTools(unittest.TestCase):
def test_removes_blocked_toolsets(self):
result = _strip_blocked_tools(["terminal", "file", "delegation", "clarify", "memory", "code_execution"])
result = _strip_blocked_tools(["terminal", "file", "delegation", "clarify", "memory", "code_execution", "skills"])
self.assertEqual(sorted(result), ["file", "terminal"])

def test_preserves_allowed_toolsets(self):
Expand Down
7 changes: 4 additions & 3 deletions tests/tools/test_delegate_toolset_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ def test_no_toolsets_requested_inherits_parent(self):
assert "file" in child
assert "web" in child

def test_strip_blocked_removes_delegation(self):
"""Blocked toolsets (delegation, clarify, etc.) are always removed."""
child = _strip_blocked_tools(["terminal", "delegation", "clarify", "memory"])
def test_strip_blocked_removes_blocked(self):
"""Blocked toolsets (delegation, clarify, memory, skills) are always removed."""
child = _strip_blocked_tools(["terminal", "delegation", "clarify", "memory", "skills"])
assert "delegation" not in child
assert "clarify" not in child
assert "memory" not in child
assert "skills" not in child
assert "terminal" in child

def test_empty_intersection_yields_empty_toolsets(self):
Expand Down
1 change: 1 addition & 0 deletions tools/delegate_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ def _strip_blocked_tools(toolsets: List[str]) -> List[str]:
"clarify",
"memory",
"code_execution",
"skills",
}
return [t for t in toolsets if t not in blocked_toolset_names]

Expand Down