Troubleshooting
Preserve finalized and partial evidence before recovery. See CLI reference for diagnostics and exit statuses.
Diagnose a failure
| Symptom | Recovery |
|---|---|
| Missing command or wrong interpreter | Check python3 --version and uv tool list. Follow Getting started. |
| Invalid target | Pass git rev-parse --show-toplevel. Select a feature branch before an in-place fix run. |
| Wrong comparison base | Confirm the reference with git rev-parse --verify REF and git merge-base REF HEAD. Select --base REF. |
| Missing new files in review | The 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 target | Run 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 posting | Follow Automation recovery. |
| Backend startup or Improve boundary failure | Check the selected executable, credentials, global backend, and phase overrides. See Configuration and Improve. |
| Test readiness refusal | Configure the full canonical test command. Correct missing, blank, malformed, or unavailable commands. See Configuration. |
| Test failure or timeout | Inspect test evidence. Start required services before retrying service-dependent tests. |
| Partial review | Inspect failed-stack evidence. See completion states. |
| Resume rejection | Preserve evidence and unrelated Git changes, then start without --start-at. Do not edit saved diff identity. |
| Failed fixes | Inspect fix recovery evidence. |
| Unsupported archive index | Follow archive recovery. |
| Capture or publication failure | Follow Corpus preparation. |
| Missing diagram | Check eligibility and validation in Architecture. |
| Tracing startup failure | Check destination, credentials, and transport settings in Configuration. |
| Extension load failure | Check extension validation. |
| Partial bot setup | Inspect 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