Skip to content

Dotbot workflow task stuck after merge failure - cannot skip or resolve, blocking the entire run #676

Description

@selmasoljic5

What happened

I created a new workflow in the Dotbot dashboard, ran Dotbot, and started the workflow. Dotbot auto-created task-scoped branches (e.g. task/t_KOaHRp-run-intake) and a workflow branch (workflow/plan-feature-TAjy). During execution, the task "Scan Relevant Codebase" failed to merge with this error:
Merge failed for task 'Scan Relevant Codebase'
Merge failure kind: exception
Message: Error during merge: Failed to checkout master in
C:\Users<user>\source\repos<my-repo>
(currently on: workflow/plan-feature-TAjy)
Detail: Failed to checkout master in C:\Users<user>\source\repos<my-repo>
(currently on: workflow/plan-feature-TAjy)
at Assert-OnBaseBranch, C:\Users<user>\dotbot-pe\src\runtime\Modules\Dotbot.Worktree\Dotbot.Worktree.psm1, line 245
at Complete-TaskWorktree, C:\Users<user>\dotbot-pe\src\runtime\Modules\Dotbot.Worktree\Dotbot.Worktree.psm1, line 1754
at , C:\Users<user>\dotbot-pe\src\runtime\Scripts\Invoke-WorkflowProcess.ps1, line 2289
at , C:\Users<user>\dotbot-pe\src\runtime\Scripts\Invoke-DotbotProcess.ps1, line 442
Worktree preserved at:
C:\Users<user>\source\repos\worktrees<my-repo>\task_t_Hd7Qhc-scan-relevant-codebase

The dashboard offered "Investigate logs and retry" and "Skip this task," but neither option worked - the task stayed stuck and I couldn't get the workflow to proceed.

What you expected

Either the merge should succeed without requiring master to be checked out in the main working directory while another workflow branch is active, or the "Skip this task" option should actually skip it and let the rest of the workflow continue.

Steps to reproduce

  1. Create a new workflow in the Dotbot dashboard.
  2. Run Dotbot and start the new workflow from the dashboard.
  3. Let Dotbot auto-create its task/workflow branches.
  4. Observe the "Scan Relevant Codebase" task fail with the merge error above.
  5. Try "Investigate logs and retry" and "Skip this task" — neither resolves it.

Environment

OS: Windows 11
dotbot: v4.0.2
Node: v16.20.2

Severity

high

Logs / screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions