Skip to content

fix: harden completion detection and tasks-mode completion gating#47

Open
RoeeJ wants to merge 1 commit intoTh0rgal:masterfrom
RoeeJ:master
Open

fix: harden completion detection and tasks-mode completion gating#47
RoeeJ wants to merge 1 commit intoTh0rgal:masterfrom
RoeeJ:master

Conversation

@RoeeJ
Copy link

@RoeeJ RoeeJ commented Feb 18, 2026

I opened this PR after hitting repeating false positives with Codex completion detection.

This refactors completion logic into a new completion.ts module, simplifies checkCompletion in ralph.ts, and tightens task-mode rules. Completion is now detected only when the terminal promise is the final non-empty line, and in tasks mode it’s accepted only if all subtasks are complete (with guards against identical completion/task promises).

Added focused tests for the new helpers to ensure correctness and prevent regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments