ralph-claude-code/lib
gwicho38 5cad271eac
fix: Recognize STATUS: COMPLETE as progress in circuit breaker (#140)
* fix: Recognize STATUS: COMPLETE as progress in circuit breaker

The circuit breaker was only detecting progress through git diff changes.
When Claude completed work and committed it, subsequent loops showed 0
uncommitted changes, causing the circuit breaker to trip after 3 loops.

This fix adds multiple progress detection sources:
1. Git diff changes (existing)
2. has_completion_signal from response analysis (STATUS: COMPLETE)
3. files_modified reported by Claude in RALPH_STATUS block

This ensures that completed work is recognized as progress even when
all changes have been committed to git.

Fixes issue where circuit breaker would repeatedly trip on projects
where Claude finishes tasks and commits them immediately.

* Update lib/circuit_breaker.sh

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Frank Bria <frank.bria@proton.me>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-29 22:34:41 -07:00
..
circuit_breaker.sh fix: Recognize STATUS: COMPLETE as progress in circuit breaker (#140) 2026-01-29 22:34:41 -07:00
date_utils.sh feat(analyzer): add Claude CLI JSON format support and session management 2026-01-09 17:46:02 -07:00
enable_core.sh refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
response_analyzer.sh fix(exit-detection): use explicit EXIT_SIGNAL instead of confidence threshold (#132) 2026-01-26 16:41:05 -07:00
task_sources.sh feat(enable): add ralph-enable wizard for existing projects (v0.11.0) (#124) 2026-01-25 14:37:25 -07:00
timeout_utils.sh Add timeout command support for macOS (#108) 2026-01-20 18:40:21 -07:00
wizard_utils.sh fix(wizard): redirect prompts to stderr for clean command substitution (#130) 2026-01-26 14:47:06 -07:00