Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(tools): pin POSIX run_shell failure semantics verified on Ubuntu (WSL)

rubenluetke10-beepff4b7ba0ac5d
diff --git a/tests/unit/plugins/tool/test_run_shell.py b/tests/unit/plugins/tool/test_run_shell.py
index 76951ccc6a..6d1b9a1abe 100644
--- a/tests/unit/plugins/tool/test_run_shell.py
+++ b/tests/unit/plugins/tool/test_run_shell.py
@@ -151,3 +151,16 @@ async def test_posix_exit_code_propagates() -> None:
result = await RunShellTool().execute({"command": "exit 7"}, None)
assert result.success is False
assert result.output["exit_code"] == 7
+
+
+@posix_only
+async def test_posix_missing_command_is_readable_failure() -> None:
+ """sh reports 127 with the command name on stderr — the brain needs that
+ text to reformulate instead of retrying blindly."""
+ result = await RunShellTool().execute(
+ {"command": "definitely-missing-cmd-xyz"}, None
+ )
+ assert result.success is False
+ assert result.output["exit_code"] == 127
+ assert "definitely-missing-cmd-xyz" in result.output["stderr"]