Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
unsloth start: stop --allowedTools swallowing the forwarded prompt (#9939)
Nilayca37900f748d
diff --git a/unsloth_cli/commands/start.py b/unsloth_cli/commands/start.pyindex 289944ce44a..616ff5c7789 100644--- a/unsloth_cli/commands/start.py+++ b/unsloth_cli/commands/start.py@@ -4572,8 +4572,9 @@ def claude("--plugin-dir",_agent_config_path(plugin, ["claude"]),# Before ctx.args: a forwarded `--` would turn later flags positional.- "--allowedTools",- f"{_CLAUDE_SUBAGENT_TOOL},{_CLAUDE_SUBAGENT_PLAN_TOOL}",+ # `=` form: --allowedTools is variadic, so a detached value swallows+ # the first forwarded positional.+ f"--allowedTools={_CLAUDE_SUBAGENT_TOOL},{_CLAUDE_SUBAGENT_PLAN_TOOL}",*_yolo_command_flags("claude", yolo),*ctx.args,]diff --git a/unsloth_cli/tests/test_start.py b/unsloth_cli/tests/test_start.pyindex 3a6dcb65c9a..0cb085bad16 100644--- a/unsloth_cli/tests/test_start.py+++ b/unsloth_cli/tests/test_start.py@@ -1583,8 +1583,7 @@ def test_connect_claude_as_subagent_preserves_cloud_parent(fake_studio, tmp_path"claude","--plugin-dir",str(plugin),- "--allowedTools",- f"{start._CLAUDE_SUBAGENT_TOOL},{start._CLAUDE_SUBAGENT_PLAN_TOOL}",+ f"--allowedTools={start._CLAUDE_SUBAGENT_TOOL},{start._CLAUDE_SUBAGENT_PLAN_TOOL}","hello",]assert "--model" not in command@@ -5091,7 +5090,20 @@ def test_claude_subagent_allowed_tools_precede_forwarded_delimiter(fake_studio):)assert result.exit_code == 0, result.outputcommand = _launch_command(result.output)- assert command.index("--allowedTools") < command.index("--resume")+ allowed = next(arg for arg in command if arg.startswith("--allowedTools="))+ assert command.index(allowed) < command.index("--resume")+++def test_claude_subagent_forwards_positional_prompt(fake_studio):+ # --allowedTools is variadic: a detached value would consume the prompt.+ result = CliRunner().invoke(+ start.start_app,+ ["claude", "--as-subagent", "--no-launch", "fix the failing test"],+ )+ assert result.exit_code == 0, result.output+ command = _launch_command(result.output)+ assert command[-1] == "fix the failing test"+ assert "--allowedTools" not in commanddef test_opencode_subagent_installs_binary_before_filter_inspection(fake_studio, monkeypatch):