mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(tests): grok session test pins the fleet-wide subagent ban
The last test asserting the prompter kept the Agent tool — it pinned the allowance through the disallowed-tools string, which the #372 test sweep (grepping the flag names) missed.
This commit is contained in:
@@ -120,10 +120,11 @@ def test_session_uses_slug_role_when_id_maps(
|
||||
) -> None:
|
||||
monkeypatch.delenv("ROBOCO_AGENT_ROLE", raising=False)
|
||||
monkeypatch.delenv("ROBOCO_GROK_REASONING_EFFORT", raising=False)
|
||||
# intake-1 maps to the prompter role -> subagents allowed (not disallowed).
|
||||
# intake-1 maps to the prompter role; the slug-derived role args must
|
||||
# carry the fleet-wide subagent ban (Agent disallowed for every role).
|
||||
session = GrokCliSession(cwd="/ws", agent_id="intake-1")
|
||||
dis = session._role_args[session._role_args.index("--disallowed-tools") + 1]
|
||||
assert "Agent" not in dis
|
||||
assert "Agent" in dis
|
||||
|
||||
|
||||
def test_turn_timeout_seconds_env_and_default(
|
||||
|
||||
Reference in New Issue
Block a user