Skip to content

fix: let Plan tasks run in parallel without implicit auto-completion#632

Open
ASaiAnudeep wants to merge 1 commit into
vercel:mainfrom
ASaiAnudeep:chore.630-plan-api-control-auto-complete-tasks
Open

fix: let Plan tasks run in parallel without implicit auto-completion#632
ASaiAnudeep wants to merge 1 commit into
vercel:mainfrom
ASaiAnudeep:chore.630-plan-api-control-auto-complete-tasks

Conversation

@ASaiAnudeep

@ASaiAnudeep ASaiAnudeep commented Jun 20, 2026

Copy link
Copy Markdown

Summary

Plan’s task list API always marked existing in-progress steps as complete whenever a new step was added. That made sense for simple sequential bots, but it blocked parallel work — even though the docs already showed a parallel pattern and per-task updates by ID were added earlier.

This PR adds an optional flag on task creation so callers can keep multiple steps in progress at once, while leaving the old sequential behavior as the default.

Opt-out flag, default on. We considered removing auto-completion entirely. That would’ve been cleaner for parallel use but would’ve broken existing sequential bots that rely on implicit “move to next step” behavior. Defaulting to the current behavior keeps upgrades safe; parallel callers pass the flag off.

No broader API redesign. Task completion stays explicit via status updates and the existing “complete plan” flow. The change is scoped to when a new task is appended.

Test plan

Unit tests

Checklist

  • All commits are signed and verified
  • pnpm validate passes
  • Changeset added (or N/A — see CONTRIBUTING.md)
  • Documentation updated (or N/A)

closes #630

🔒 Scanned for secrets using gitleaks 8.28.0
@ASaiAnudeep ASaiAnudeep requested a review from a team as a code owner June 20, 2026 14:23
@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

@ASaiAnudeep is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plan API: addTask() auto-completes all previous in_progress tasks, preventing parallel task execution

1 participant