feat(ui): Add UI toggles for available tools per-project

This commit is contained in:
2026-02-23 11:24:44 -05:00
parent 9c5fcab9e8
commit 1677d25298
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import pytest
def test_agent_capabilities_config():
# A dummy test to fulfill the Red Phase for Agent Capability Configuration.
# The new function in gui.py should be get_active_tools() or we check the project dict.
from project_manager import default_project
proj = default_project("test_proj")
# We expect 'agent' config to exist in a default project and list tools
assert "agent" in proj
assert "tools" in proj["agent"]
# By default, all tools should probably be True or defined
tools = proj["agent"]["tools"]
assert "run_powershell" in tools
assert tools["run_powershell"] is True