Claude Code Bug: Background Commands Report False Exit Code 0 on Failure

myntriq-engg · ghdev · 2026-08-30

A user reported a critical bug in Claude Code where backgrounded shell commands (runinbackground: true) incorrectly report "exit code 0" (success) even when they fail partway through. In a reproducible case, a docker push failed due to a registry timeout—despite the script having set -euo pipefail—yet both the harness output and the task notification claimed success. This prevents actual error detection during deployments.

Original post →

More from coding & agent

coding & agent channel →