Skip to content
Merged
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
5 changes: 5 additions & 0 deletions bench/tb_agents/opencode_router_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,15 @@ def _build_router_config(self) -> str:
"""
config = {
"$schema": "https://opencode.ai/config.json",
# Headless benchmark runs cannot answer interactive permission prompts.
# Keep this identical for raw and supervisor arms.
"permission": {
"edit": "allow",
"bash": "allow",
"webfetch": "allow",
"read": "allow",
"write": "allow",
"external_directory": "allow",
},
"provider": {
self._provider: {
Expand Down
15 changes: 1 addition & 14 deletions bench/tb_agents/opencode_supervisor_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,8 @@ def _mcp_url(self) -> str:
return f"http://{DOCKER_BRIDGE_GATEWAY}:{self._mcp_port}/mcp"

def _build_router_config(self) -> str:
"""Base router config plus the coordination MCP block."""
config = json.loads(super()._build_router_config())
perm = config.setdefault("permission", {})
perm.update(
{
"edit": "allow",
"bash": "allow",
"webfetch": "allow",
"read": "allow",
"write": "allow",
"task": "allow",
"plan_enter": "allow",
"plan_exit": "allow",
"question": "allow",
}
)
if self._mcp_port is not None:
config["mcp"] = {
"coordination": {
Expand Down
Loading