diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 209a0e997..956944020 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## [Unreleased] +### Removed + +- Removed `MAX_PARALLEL_TASKS` constant and associated task count validation limit ## [10.6.1] - 2026-02-04 diff --git a/packages/coding-agent/src/task/index.ts b/packages/coding-agent/src/task/index.ts index 06bd8dff1..a2650ef61 100644 --- a/packages/coding-agent/src/task/index.ts +++ b/packages/coding-agent/src/task/index.ts @@ -38,7 +38,6 @@ import { renderTemplate } from "./template"; import { type AgentProgress, MAX_CONCURRENCY, - MAX_PARALLEL_TASKS, type SingleResult, type TaskParams, type TaskToolDetails, @@ -115,7 +114,6 @@ async function buildDescription(cwd: string): Promise { return renderPromptTemplate(taskDescriptionTemplate, { agents, - MAX_PARALLEL_TASKS, MAX_CONCURRENCY, }); } @@ -221,23 +219,6 @@ export class TaskTool implements AgentTool MAX_PARALLEL_TASKS) { - return { - content: [ - { - type: "text", - text: `Too many tasks (${params.tasks.length}). Max is ${MAX_PARALLEL_TASKS}.`, - }, - ], - details: { - projectAgentsDir, - results: [], - totalDurationMs: 0, - }, - }; - } - const tasks = params.tasks; const missingTaskIndexes: number[] = []; const idIndexes = new Map(); diff --git a/packages/coding-agent/src/task/types.ts b/packages/coding-agent/src/task/types.ts index 18f8ef7fe..d8ddf89ce 100644 --- a/packages/coding-agent/src/task/types.ts +++ b/packages/coding-agent/src/task/types.ts @@ -19,9 +19,6 @@ function getEnv(name: string, defaultValue: number): number { return defaultValue; } -/** Maximum tasks per call */ -export const MAX_PARALLEL_TASKS = getEnv("OMP_TASK_MAX_PARALLEL", 32); - /** Maximum concurrent tasks */ export const MAX_CONCURRENCY = getEnv("OMP_TASK_MAX_CONCURRENCY", 16); @@ -66,7 +63,7 @@ export const taskSchema = Type.Object({ schema: Type.Optional( Type.Record(Type.String(), Type.Unknown(), { description: "JTD schema defining expected response structure" }), ), - tasks: Type.Array(taskItemSchema, { description: "Tasks to run in parallel", maxItems: MAX_PARALLEL_TASKS }), + tasks: Type.Array(taskItemSchema, { description: "Tasks to run in parallel" }), }); export type TaskParams = Static;