Merge pull request #2858 from TomzxForks/issue-2847

Remove the 5-model limit on multi-run groups
This commit is contained in:
Bohdan Triapitsyn
2026-08-28 01:23:28 +03:00
committed by GitHub
15 changed files with 48 additions and 26 deletions
@@ -226,4 +226,39 @@ describe('useMultiRunStore', () => {
'createSession:/repo-worktrees/fix-thing',
]);
});
test('accepts more than 5 models per group without a "maximum 5 models" error', async () => {
const models = Array.from({ length: 6 }, (_, i) => ({
providerID: 'anthropic',
modelID: `claude-sonnet-4-5-${i}`,
}));
const result = await useMultiRunStore.getState().createMultiRun({
name: 'Many models',
isolateRuns: false,
groups: [{ prompt: 'Fix it', models }],
});
expect(useMultiRunStore.getState().error).toBeNull();
expect(result?.sessionIds).toHaveLength(6);
});
test('accepts more than 5 models on the isolated (per-worktree) dispatch path', async () => {
isGitRepository = true;
const models = Array.from({ length: 6 }, (_, i) => ({
providerID: 'anthropic',
modelID: `claude-sonnet-4-5-${i}`,
}));
const result = await useMultiRunStore.getState().createMultiRun({
name: 'Many models',
isolateRuns: true,
groups: [{ prompt: 'Fix it', models }],
});
expect(useMultiRunStore.getState().error).toBeNull();
expect(result?.sessionIds).toHaveLength(6);
expect(worktreeCreateCalls.length).toBe(6);
});
});
@@ -138,10 +138,6 @@ export const useMultiRunStore = create<MultiRunStore>()(
set({ error: `Group ${gi + 1}: select at least 1 model` });
return null;
}
if (groups[gi].models.length > 5) {
set({ error: `Group ${gi + 1}: maximum 5 models allowed` });
return null;
}
}
set({ isLoading: true, error: null });