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:
Tom Rochette
2026-08-13 04:32:15 +00:00
parent c4b14e2a3a
commit f51f77f750
3 changed files with 21 additions and 2 deletions
@@ -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);
});
});