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

@ -330,7 +330,7 @@ monitor_phase_loop() {
local current_phase
current_phase=$(head -1 "$phase_file" 2>/dev/null | tr -d '[:space:]' || true)
case "$current_phase" in
PHASE:done|PHASE:failed|PHASE:merged)
PHASE:done|PHASE:failed|PHASE:merged|PHASE:needs_human)
;; # terminal — fall through to phase handler
*)
# Call callback with "crashed" — let agent-specific code handle recovery