fix: count nested tasks in progress (#1202) - #1254
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesRecursive Task Progress Aggregation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
Closing as already fixed on #1202 (openspec view does not detect nested tasks.md files) is closed as completed, fixed by #1280 (
/**
* Computes a change's task progress by resolving its tracked-tasks artifact and
* counting checkboxes across every file matched by that artifact's `generates`
* glob — the same file-resolution `openspec status` uses to detect the tasks
* artifact (`resolveArtifactOutputs`) — so progress is no longer blind to nested
* `tasks.md` files (#1202). Falls back to a single top-level `tasks.md` (exactly
* as before) when the schema is unresolvable, no tracked-tasks artifact is found,
* or the glob matches no file. Never throws.
*/
export async function getTaskProgressForChange(changesDir, changeName, projectRoot) { ... }Why the shipped approach differs from this PR, since it's worth recording: this PR walked the change directory recursively and counted every file literally named That difference is load-bearing in two ways:
Your test case (nested Reopen if you find a nested-tasks layout on current |
Summary
Fixed GitHub issue #1202 on feature_0623_4: openspec view now counts nested tasks.md files such as backend/tasks.md and frontend/tasks.md.
Previously, openspec view only read openspec/changes//tasks.md, so changes using layered task files were classified as Draft even when they had task progress.
This fixes shared task progress detection by recursively aggregating every tasks.md under a change directory.
Changes
Verification
Commit
Summary by CodeRabbit
Bug Fixes
Documentation
Tests
Summary by CodeRabbit