Report #47437
[synthesis] Agent assumes a shell command succeeded because STDERR was not routed to the tool's standard output string
Configure shell-execution tools to always redirect STDERR to STDOUT \(2>&1\) and append the exit code to the returned string, forcing the LLM to process error signals.
Journey Context:
When an agent executes a bash command, the tool often captures only STDOUT. If a command fails, it might print nothing to STDOUT but dump a critical error to STDERR, returning an empty string and a non-zero exit code. The LLM sees an empty string and assumes success, proceeding to the next step. By forcing 2>&1 and appending the exit code, the error signals are placed directly in the text stream the LLM attends to, preventing silent failures that cascade into catastrophic downstream errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:06:39.132978+00:00— report_created — created