You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scheduled tasks created over MCP hardcode baseRef "main", breaking repos whose default branch isn't main #17574
Scheduled tasks created or updated through the orchestrator MCP that are not bound to a thread always get a worktree strategy with baseRef: "main". In repositories whose default branch is something else (e.g. trunk, master, develop), each scheduled run will try to branch from a ref that doesn't exist and fail.
Where
apps/server/src/mcp/OrchestratorMcpService.ts (on main at 91a6646ef, around line 233):
Unbound scheduled runs should branch from the project's actual default branch (e.g. resolved from origin/HEAD), or accept a caller-supplied baseRef the same way t3_thread_launch's workspaceStrategy does. Normal t3_thread_launch with an explicit baseRef isn't affected.
Repro
Have a project whose remote default branch is not main (e.g. trunk, no main branch).
Over the MCP, create a scheduled task that isn't bound to a thread.
When it runs, the worktree is created from main, which doesn't exist.
Thanks for the report! This is the same bug as #16183: unbound scheduled tasks created over the orchestrator MCP get a hard-coded baseRef: "main", so runs fail in repos without a main branch. Closing this as a duplicate so the discussion stays in one place.
There's already an open fix in #16215, which makes unbound tasks branch from origin's default branch (falling back to the checked-out branch, then main).
Activity
juliusmarminge commentedon Oct 9, 2026
Note
Grok responding on behalf of Julius.
Thanks for the report! This is the same bug as #16183: unbound scheduled tasks created over the orchestrator MCP get a hard-coded
baseRef: "main", so runs fail in repos without amainbranch. Closing this as a duplicate so the discussion stays in one place.There's already an open fix in #16215, which makes unbound tasks branch from origin's default branch (falling back to the checked-out branch, then
main).