Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(cockpit): align milestone status counts [N26]

Corey Olson34bb81481f98
diff --git a/src/cockpit.js b/src/cockpit.js
index 8677a98d..34ef2095 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -1647,10 +1647,13 @@ function readMilestone(milestone, p) {
/** Pick the first release with remaining work in roadmap order; empty plans wait behind it. */
function nextMilestone(p) {
- return (p.milestones || []).find((milestone) => {
+ const next = (p.milestones || []).find((milestone) => {
const read = readMilestone(milestone, p);
return read.rows.length > 0 && !read.shipped;
});
+ if (!next) return next;
+ const read = readMilestone(next, p);
+ return { ...next, done: read.done, total: read.rows.length };
}
/**