Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .fork-features/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"features": {
"async-tasks": {
"status": "active",
"description": "Background task execution with slot-based concurrency (max 5). Supports both async and sync modes. Enables agent orchestration via /task and /check_task tools.",
"description": "Background task execution with slot-based concurrency (max 10). Supports both async and sync modes. Enables agent orchestration via /task and /check_task tools.",
"issue": "https://github.com/randomm/opencode/issues/159",
"newFiles": [
"packages/opencode/src/session/async-tasks.ts",
Expand Down Expand Up @@ -48,7 +48,8 @@
"triggerWakeup",
"autoWakeupSubscribers",
"hasUndeliveredCompletedTasks",
"getAndClearCompletedTasks"
"getAndClearCompletedTasks",
"MAX_CONCURRENT_TASKS_PER_SESSION = 10"
],
"tests": [
"packages/opencode/test/tool/check_task.test.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/tool/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const parameters = z.object({
sync: z.boolean().describe("Execute synchronously and wait for result").optional(),
})

const MAX_CONCURRENT_TASKS_PER_SESSION = 5
const MAX_CONCURRENT_TASKS_PER_SESSION = 10

type LockCallback = (release: () => void) => void
interface LockState {
Expand Down