daydream
Daydream CLI docs

Troubleshooting

Preserve finalized and partial evidence before recovery. See CLI reference for diagnostics and exit statuses.

Diagnose a failure

SymptomRecovery
Missing command or wrong interpreterCheck python3 --version and uv tool list. Follow Getting started.
Invalid targetPass git rev-parse --show-toplevel. Select a feature branch before an in-place fix run.
Wrong comparison baseConfirm the reference with git rev-parse --verify REF and git merge-base REF HEAD. Select --base REF.
Missing new files in reviewThe captured diff excludes untracked files. Use git add -N -- FILE to record intent-to-add, which changes the index. Inspect .daydream/diff.patch.
Missing or wrong GitHub targetRun gh auth status, gh repo view --json nameWithOwner, and gh pr view --json number,headRefOid,baseRefName,state from the target. Check authentication and trusted posting setup.
Partial GitHub postingFollow Automation recovery.
Backend startup or Improve boundary failureCheck the selected executable, credentials, global backend, and phase overrides. See Configuration and Improve.
Test readiness refusalConfigure the full canonical test command. Correct missing, blank, malformed, or unavailable commands. See Configuration.
Test failure or timeoutInspect test evidence. Start required services before retrying service-dependent tests.
Partial reviewInspect failed-stack evidence. See completion states.
Resume rejectionPreserve evidence and unrelated Git changes, then start without --start-at. Do not edit saved diff identity.
Failed fixesInspect fix recovery evidence.
Unsupported archive indexFollow archive recovery.
Capture or publication failureFollow Corpus preparation.
Missing diagramCheck eligibility and validation in Architecture.
Tracing startup failureCheck destination, credentials, and transport settings in Configuration.
Extension load failureCheck extension validation.
Partial bot setupInspect the installation and setup branch before retrying. Use setup verification.

Remove a stranded worktree

When cleanup reports a remaining worktree, inspect the reported path:

REPOSITORY_ROOT="$(git rev-parse --show-toplevel)"
git -C "$REPOSITORY_ROOT" worktree list

Copy required source changes and evidence before removal. Set WORKTREE_PATH to the reported path. These commands delete the worktree, including uncommitted changes:

WORKTREE_PATH="$HOME/.daydream/workspaces/SOURCE_KEY/operational/WORKTREE_NAME"
git -C "$WORKTREE_PATH" status --short
git -C "$REPOSITORY_ROOT" worktree unlock "$WORKTREE_PATH"
git -C "$REPOSITORY_ROOT" worktree remove --force "$WORKTREE_PATH"
git -C "$REPOSITORY_ROOT" worktree prune

Back to Daydream