[Bug] spawnTeam doesn't align session task list with team directory

Resolved 💬 4 comments Opened Jan 31, 2026 by odysseus0 Closed Mar 2, 2026

Bug Description
Title: spawnTeam doesn't align session's task list with team

Summary:
When you call spawnTeam("my-team"), it creates ~/.claude/tasks/my-team/. But tasks created via TaskCreate still go to ~/.claude/tasks/{sessionId}/. Teammates then see an empty task list because they look at the team's directory while tasks are in the session's directory.

Tested scenario (Pattern 3 from community guides):

1. spawnTeam("my-team")
2. TaskCreate({ subject: "Task 1" })
3. Task({ team_name: "my-team", name: "worker", prompt: "Use TaskList..." })
4. Worker reports: "No tasks found"

Required workaround: Start session with CLAUDE_CODE_TASK_LIST_ID=my-team, THEN create team with same name. This is undocumented and unintuitive.

Expected behavior: Either:

  1. spawnTeam should switch the session's task list to the team name, OR
  2. Teammates should inherit the parent session's task list ID, OR
  3. Tasks created after spawnTeam should go to the team's task list

Impact: The "self-organizing swarm" pattern shown in community guides doesn't work out of the box. Users have to discover this workaround through trial and error.

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.27
  • Feedback ID: 3a02c888-836d-468a-83e2-adb488e2d936

Errors

[]

View original on GitHub ↗

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