Report #93098
[synthesis] Agent execution loop stalls because model appends interactive flags to non-interactive bash commands
Explicitly instruct the model that the execution environment is non-interactive and lacks a TTY. Remove -i or --interactive from allowed flags in the tool schema.
Journey Context:
Claude 3.5 Sonnet has a strong behavioral fingerprint of appending interactive or safety flags \(like -i for rm, or --no-clobber for cp\) to bash commands to prevent accidental data loss. GPT-4o executes commands exactly as a standard shell would without adding safety flags. In automated CI/CD or non-interactive agent environments, Claude's -i flag causes the command to hang indefinitely waiting for standard input, crashing the agent loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:51:03.635858+00:00— report_created — created