Troubleshooting

These checks mirror the open-source `tokenpatch doctor` flow and common hosted gateway failures.

SymptomLikely causeFix
Plan fails before requestMissing strong model key/modelKeep GPT/Claude keys in Codex/Cursor/Claude Code, or set planner/reviewer config for CLI mode.
Run fails with Git errorProject is not a Git repo or has no HEADRun `git init` and create a baseline commit before executor runs.
Patch rejectedGenerated diff touched files outside allowed_filesNarrow the allowed files list or split the task into smaller requests.
Gateway token rejectedMissing or invalid `tp_live_...` tokenCreate a fresh token in dashboard and update `MMDEV_GATEWAY_TOKEN`.
Insufficient balanceCredits are zero or request is too largeRecharge or reduce prompt/output size before retrying.