Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
docs: clarify exec shell override guidance
chengyongru4ec111c1a966
diff --git a/nanobot/agent/tools/shell.py b/nanobot/agent/tools/shell.pyindex f6d37f147..6fb4c5b66 100644--- a/nanobot/agent/tools/shell.py+++ b/nanobot/agent/tools/shell.py@@ -90,9 +90,13 @@ class _PreparedCommand:),shell=StringSchema((- "Optional shell binary to launch. Windows: powershell, pwsh, cmd."+ "Override the Windows shell only when needed. Omit to use "+ "PowerShell by default (pwsh when available, else powershell). "+ "Pass 'cmd' only for cmd.exe syntax or cmd built-ins."if _IS_WINDOWS- else "Optional shell binary to launch. Unix: sh, bash, zsh."+ else "Override the Unix shell only when needed. Omit to use "+ "bash by default. Pass 'sh' for POSIX sh or 'zsh' for "+ "zsh-specific syntax."),nullable=True,),diff --git a/tests/tools/test_tool_descriptions.py b/tests/tools/test_tool_descriptions.pyindex 9ae2fc587..ef5e8b8ce 100644--- a/tests/tools/test_tool_descriptions.py+++ b/tests/tools/test_tool_descriptions.py@@ -63,10 +63,14 @@ def test_exec_tool_shell_guidance_matches_platform() -> None:shell_parameter = ExecTool().parameters["properties"]["shell"]["description"].lower()if sys.platform == "win32":+ assert "override the windows shell only when needed" in shell_parameter+ assert "omit to use powershell by default" in shell_parameterassert "powershell" in shell_parameterassert "cmd" in shell_parameterassert "unix" not in shell_parameterelse:+ assert "override the unix shell only when needed" in shell_parameter+ assert "omit to use bash by default" in shell_parameterassert "unix" in shell_parameterassert "powershell" not in shell_parameterassert "cmd" not in shell_parameter