Address review: drop {max} from de/ja tooltips, add isolated-path test
German and Japanese locales (added on main after the original branch point) still interpolated {max}, which would render literally now that the tooltip passes no max param. Also cover the isolated per-worktree dispatch path (>5 models) in the store test.
This commit is contained in:
@@ -242,4 +242,23 @@ describe('useMultiRunStore', () => {
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user