diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-09 07:41:37 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-09 07:41:37 +0000 |
| commit | 441ed9eef3d9691cd9269772857307b84a7f5700 (patch) | |
| tree | 6143f175382ab74f9de9c664a7d6f351fdc78553 /internal/cli/report_test.go | |
| parent | 96d1c439ce27be80b751ea0085f53602606473d1 (diff) | |
executor: BLOCKED→READY for top-level tasks with subtasks
When a top-level task (ParentTaskID == "") finishes successfully,
check for subtasks before deciding the next state:
- subtasks exist → BLOCKED (waiting for subtasks to complete)
- no subtasks → READY (existing behavior, unchanged)
This applies to both execute() and executeResume().
Adds ListSubtasks to the Store interface.
Tests:
- TestPool_Submit_TopLevel_WithSubtasks_GoesBlocked
- TestPool_Submit_TopLevel_NoSubtasks_GoesReady
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/report_test.go')
0 files changed, 0 insertions, 0 deletions
