Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

fix(super-tabs): list a plan assessment for a group that is not open (#1835)

0xken15ad042e40f52b
diff --git a/cli/src/superTabs/planInput.spec.ts b/cli/src/superTabs/planInput.spec.ts
index 8ca4cf94a..eaebcc1aa 100644
--- a/cli/src/superTabs/planInput.spec.ts
+++ b/cli/src/superTabs/planInput.spec.ts
@@ -90,6 +90,20 @@ describe('planSetup', () => {
expect(s.ignored).toEqual(['gone'])
})
+ // Diego's issue, 2026-10-27: an assessment of a group that is not open (a typo, a finished group) was dropped without a word,
+ // and the group meant was planned at the default.
+ it('lists an assessed group that is not open', () => {
+ const s = setup(state(), { typo: { difficulty: 'high', risk: 'high', size: 'large' } })
+ expect(s.ignored).toEqual(['typo'])
+ expect(s.estimates).toEqual(['g1', 'g2'])
+ })
+
+ it('lists a group that is not open once, however many name it', () => {
+ const low = { difficulty: 'low', risk: 'low', size: 'small' } as const
+ const s = setup(state(), { g1: { ...low, after: ['gone'] }, g2: { ...low, after: ['gone'] }, gone: low })
+ expect(s.ignored).toEqual(['gone'])
+ })
+
it('leaves out machines that cannot take a new agent now, saying why', () => {
const s = setup(state({ machines: [machine('m1'), machine('old', {}, { receivedAt: NOW - 60_000 }), machine('paused', { paused: true }),
machine('full', { availableSlots: 0 }), machine('win', {}, { resources: { memoryTotalBytes: 68_719_476_736, memoryUsedBytes: 1, projectDiskFreeBytes: 132_155_797_504, os: 'Windows' } }),
diff --git a/cli/src/superTabs/planInput.ts b/cli/src/superTabs/planInput.ts
index 44ebc1d6f..5d8125ee3 100644
--- a/cli/src/superTabs/planInput.ts
+++ b/cli/src/superTabs/planInput.ts
@@ -206,8 +206,12 @@ export function planSetup(input: { state: Json; policy: Policy; leadId: string;
}
const byGroup = new Map(open.map(c => [String(c.id), rulesOf(projectOf(c))]))
+ // Diego's issue, 2026-10-27: an assessed group that is not open (a typo, a finished group) was dropped without a word, and
+ // a group two others wait for was listed twice.
+ ignored.push(...Object.keys(request).filter(id => !openIds.has(id)))
return {
- instance: { tasks, machines, models, accounts: [...accounts.values()] }, rows, titles, machineNames, estimates, ignored, leftOut,
+ instance: { tasks, machines, models, accounts: [...accounts.values()] }, rows, titles, machineNames, estimates,
+ ignored: [...new Set(ignored)], leftOut,
effortFor: (group, row) => liftEffort(byGroup.get(group) ?? [], rows[row]!.engine, rows[row]!.effort),
}
}