fix: PHASE:needs_human missing from crash-path terminal set in monitor_phase_loop (#342)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-21 03:50:21 +00:00
parent f511a6c7a7
commit ab122c9701
3 changed files with 55 additions and 2 deletions

View file

@ -30,7 +30,7 @@ reason=$(printf '%s' "$input" | jq -r '
# the PostToolUse hook already recorded the correct terminal phase.
existing=$(head -1 "$phase_file" 2>/dev/null | tr -d '[:space:]')
case "$existing" in
PHASE:done|PHASE:merged) exit 0 ;;
PHASE:done|PHASE:merged|PHASE:needs_human) exit 0 ;;
esac
# Write phase file immediately — orchestrator reads first line as phase sentinel