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
@@ -32,7 +32,6 @@ import { startDesktopWindowDrag } from '@/lib/desktopNative';
import { useI18n } from '@/lib/i18n';
const MAX_FILE_SIZE = 10 * 1024 * 1024;
const MAX_MODELS_PER_GROUP = 5;
interface MultiRunAttachedFile {
id: string;
@@ -727,7 +726,6 @@ const RunGroupCard: React.FC<RunGroupCardProps> = ({
const snippetRef = React.useRef<SnippetAutocompleteHandle>(null);
const handleAddModel = React.useCallback((model: ModelSelectionWithId) => {
if (group.models.length >= MAX_MODELS_PER_GROUP) return;
onUpdate(group.id, { models: [...group.models, model] });
}, [group.id, group.models, onUpdate]);
@@ -987,7 +985,7 @@ const RunGroupCard: React.FC<RunGroupCardProps> = ({
<div className="flex flex-col gap-1.5">
<FieldLabel
required
info={<InfoTip>{t('multirun.launcher.models.info', { max: MAX_MODELS_PER_GROUP })}</InfoTip>}
info={<InfoTip>{t('multirun.launcher.models.info')}</InfoTip>}
>
{t('multirun.launcher.models.label')}
</FieldLabel>
@@ -997,7 +995,6 @@ const RunGroupCard: React.FC<RunGroupCardProps> = ({
onRemove={handleRemoveModel}
onUpdate={handleUpdateModel}
minModels={1}
maxModels={MAX_MODELS_PER_GROUP}
/>
</div>
</div>
@@ -22,8 +22,6 @@ import { useI18n } from '@/lib/i18n';
/** Max file size in bytes (10MB) */
const MAX_FILE_SIZE = 10 * 1024 * 1024;
/** Max number of concurrent runs */
const MAX_MODELS = 5;
/** Attached file for agent manager */
interface AttachedFile {
@@ -132,11 +130,8 @@ export const AgentManagerEmptyState: React.FC<AgentManagerEmptyStateProps> = ({
}, [projectRef]);
const handleAddModel = React.useCallback((model: ModelSelectionWithId) => {
if (selectedModels.length >= MAX_MODELS) {
return;
}
setSelectedModels((prev) => [...prev, model]);
}, [selectedModels.length]);
}, []);
const handleRemoveModel = React.useCallback((index: number) => {
setSelectedModels((prev) => prev.filter((_, i) => i !== index));
@@ -529,7 +524,6 @@ export const AgentManagerEmptyState: React.FC<AgentManagerEmptyStateProps> = ({
onUpdate={handleUpdateModel}
minModels={1}
addButtonLabel={t('agentManager.empty.models.addModel')}
maxModels={5}
/>
</div>