diff --git a/agents/runner.py b/agents/runner.py index 9aaa7da..d8c4abe 100644 --- a/agents/runner.py +++ b/agents/runner.py @@ -260,7 +260,7 @@ def _run_claude( "--model", model, ] is_noninteractive = noninteractive or os.environ.get("KIN_NONINTERACTIVE") == "1" - if allow_write or noninteractive: + if allow_write or is_noninteractive: cmd.append("--dangerously-skip-permissions") if timeout is None: env_timeout = os.environ.get("KIN_AGENT_TIMEOUT")