fix: agent_run swallows all Claude failures silently via || true #277
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
lib/agent-sdk.sh line 53:
The
|| truemeans timeout, API auth failure, OOM kill, and signal termination all produce exit code 0. The calling scripts check nothing after agent_run. If Claude fails, output is empty, session_id is empty, and the nudge logic runs with an empty session ID then also fails silently.This caused the cascading empty-output failures we observed on issues #239, #266, #267, #268.
Fix
Capture the exit code and log it. Distinguish between expected outcomes and failures:
Skip the nudge when output is empty (Claude crashed, nothing to nudge).
Affected files
Acceptance criteria
Blocked — issue #277
no_push2026-04-06T09:24:05ZDiagnostic output