disinto/dev
openhands 8b293331b6 fix: phase-handler.sh FAILURE_REASON fallback does not handle missing phase file (#410)
The sed pipeline `sed -n 2p "$PHASE_FILE" 2>/dev/null | sed "s/^Reason: //"` exits 0
even when $PHASE_FILE does not exist because the second sed reads empty stdin and
succeeds, leaving FAILURE_REASON as "" instead of "unspecified".

Replace with an explicit file-existence check and use ${FAILURE_REASON:-unspecified}
as the default assignment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 15:00:01 +00:00
..
AGENTS.md chore: gardener housekeeping 2026-03-21 2026-03-21 14:33:26 +00:00
dev-agent.sh fix: Stale ${PROJECT_NAME:-harb} fallbacks in agent scripts (#400) 2026-03-21 14:25:13 +00:00
dev-poll.sh fix: Stale ${PROJECT_NAME:-harb} fallbacks in agent scripts (#400) 2026-03-21 14:25:13 +00:00
phase-handler.sh fix: phase-handler.sh FAILURE_REASON fallback does not handle missing phase file (#410) 2026-03-21 15:00:01 +00:00
phase-test.sh fix: PHASE:needs_human missing from crash-path terminal set in monitor_phase_loop (#342) 2026-03-21 03:50:21 +00:00