Skip to content

Allow Tasks dispatch without requiring Git - #1396

Merged
ymichael merged 1 commit into
mainfrom
bb/1387-bug-tasks-plugin-dispatch-agent-to-git-init-thr_hzkm4njqtz
Aug 12, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/1387-bug-tasks-plugin-dispatch-agent-to-git-init-thr_hzkm4njqtz

Conversation

@ymichael

@ymichael ymichael commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • make the server-owned project-default policy prefer an isolated worktree when the primary project source has a usable base branch, and otherwise run in the existing source checkout
  • allow Tasks dispatch for non-Git directories and repositories with no commits without initializing or mutating the user's repository
  • keep explicit New worktree requests strict, with distinct actionable errors for non-Git and zero-commit sources and disabled composer options when the limitation is already known
  • bump the host-daemon protocol to 108 for the new unborn_head provisioning error

QA

  • reproduced the original failure through a linked Tasks project and project-default preset
  • dispatched a real Tasks agent from a fresh git init -b main repository with zero commits; verified the Tasks-attributed thread ran successfully in the original path with an unmanaged, non-worktree environment and left the repository commitless
  • verified project-default still provisions a managed worktree for a normal Git repository
  • added server regressions for Tasks-attributed project-default dispatch from both an unborn repository and a non-Git directory
  • pnpm exec turbo run test --filter=@bb/host-workspace --filter=@bb/host-daemon-contract --filter=@bb/server-contract --filter=@bb/server --filter=@bb/app --filter=bb-plugin-tasks --force
  • pnpm exec turbo run typecheck --filter=@bb/host-workspace --filter=@bb/host-daemon-contract --filter=@bb/host-daemon --filter=@bb/server-contract --filter=@bb/server --filter=@bb/app --filter=bb-plugin-tasks
  • pnpm exec turbo run lint --filter=@bb/app --force

Fixes #1387

AGENT GENERATED: by GPT-5.6 Sol

@ymichael
ymichael force-pushed the bb/1387-bug-tasks-plugin-dispatch-agent-to-git-init-thr_hzkm4njqtz branch from 8bb97d6 to 797f52c Compare August 12, 2026 17:09
@ymichael ymichael changed the title Fix worktree errors for repositories without commits Allow Tasks dispatch without requiring Git Aug 12, 2026
@ymichael
ymichael merged commit 893a05a into main Aug 12, 2026
10 checks passed
@ymichael
ymichael deleted the bb/1387-bug-tasks-plugin-dispatch-agent-to-git-init-thr_hzkm4njqtz branch August 12, 2026 17:27
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.

[Bug] Tasks plugin dispatch agent to git init folder not working

1 participant