[BUG] TaskCreate batch calls display tasks in random order instead of creation order

Resolved 💬 2 comments Opened Mar 9, 2026 by jaried Closed Apr 6, 2026

What's Wrong?
When calling multiple TaskCreate tools in parallel within a single response, the resulting task list displays tasks in a seemingly random order instead of the order they were created in.

For example, creating 11 tasks in order (step 1 through step 11), the returned task IDs and display order are jumbled:

  • Task #145: step 1
  • Task #144: step 2
  • Task #141: step 3
  • Task #143: step 4
  • Task #140: step 5
  • Task #142: step 6

The IDs are not sequential and the display order does not match creation order.

What Should Happen?
Tasks created in a batch should be assigned sequential IDs and displayed in creation order (i.e., the order the TaskCreate calls were made).

Steps to Reproduce

  1. In a single response, call TaskCreate 6+ times in parallel
  2. Observe the returned task IDs are not sequential
  3. Call TaskList - tasks are displayed in random order, not creation order

Environment

  • Claude Code version: 2.1.71
  • OS: Windows 10 Pro (Build 19045)
  • Terminal: Windows Terminal 1.23.20211.0
  • Platform: Anthropic Max

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗