fix: supervisor claim/unclaim now matches indented subtasks in TODO.md#760
fix: supervisor claim/unclaim now matches indented subtasks in TODO.md#760marcusquinn merged 1 commit intomainfrom
Conversation
The claim, unclaim, and task lookup functions used '^- \[ \]' which only matched top-level tasks. Subtasks (indented with spaces like ' - [ ] t132.2') were invisible to the supervisor, causing dispatch failures for all subtask IDs. Changed grep patterns from '^- \[' to '^[[:space:]]*- \[' in: - cmd_claim() task existence check and line number lookup - cmd_unclaim() line number lookup - check_task_claimed() task line lookup - get_task_gh_issue() task line lookup - add task description lookup from TODO.md The completion function (mark_task_complete) already handled indented subtasks.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedThe pull request is closed. WalkthroughUpdated regex patterns in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Mon Feb 9 04:58:25 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
^- \[to^[[:space:]]*- \[in claim/unclaim/lookup functionsProblem
The supervisor's
claim,unclaim, and task lookup functions used^- \[ \]regex which only matched top-level tasks. Subtasks in TODO.md are indented:This caused all subtask dispatches to fail with "Task tXXX.X not found as open in TODO.md".
Fix
Changed 7 grep patterns to use
^[[:space:]]*- \[which matches both:- [ ] t132 ...(top-level, zero indent)- [ ] t132.2 ...(subtask, 2+ space indent)Functions Fixed
cmd_claim()— task existence check + line number lookupcmd_unclaim()— line number lookupcheck_task_claimed()— task line lookupget_task_gh_issue()— task line lookupaddcommandNote:
mark_task_complete()already handled indented subtasks correctly.Testing
Summary by CodeRabbit