Skip to content

Your lightweight open-source personal agent.

fix: change exec login-shell default from true to false (#4518)

axelray-dev13c951aa419b
diff --git a/nanobot/agent/tools/shell.py b/nanobot/agent/tools/shell.py
index 4da7895d6..279e2e77e 100644
--- a/nanobot/agent/tools/shell.py
+++ b/nanobot/agent/tools/shell.py
@@ -93,8 +93,8 @@ class _PreparedCommand:
nullable=True,
),
login=BooleanSchema(
- description="Whether to run bash/zsh with login shell semantics (default true).",
- default=True,
+ description="Whether to run bash/zsh with login shell semantics (default false).",
+ default=False,
nullable=True,
),
yield_time_ms=IntegerSchema(
@@ -432,7 +432,7 @@ class ExecTool(Tool):
env=env,
timeout=effective_timeout,
shell_program=shell_program,
- login=True if login is None else login,
+ login=False if login is None else login,
)
def _compose_path(self, current_path: str) -> str:
@@ -461,7 +461,7 @@ class ExecTool(Tool):
async def _spawn(
command: str, cwd: str, env: dict[str, str],
shell_program: str | None = None,
- login: bool = True,
+ login: bool = False,
*,
stdin: int = asyncio.subprocess.DEVNULL,
) -> asyncio.subprocess.Process: