Troubleshooting
Feature docs index ยท Repository README
Paths below use ~/.magi-code unless MC_HOME is set. Errors report the resolved paths.
Build or launch problems
cargo: command not found: install Rust from https://rustup.rs/ and restart your shell.magi-code: command not found: run through Cargo, install withcargo install --path . --locked, or add~/.cargo/bintoPATH.- Alias runs in the wrong project: use
--manifest-path /absolute/path/to/magi-code/Cargo.tomlin the alias and keep the trailing--before CLI flags. rg: command not found: no external search binary is required;grepuses the native bounded engine.
Auth and provider problems
missing auth for provider 'openai-codex': run/login openai-codex. See Provider authentication for provider-keyed OAuth records.missing ChatGPT account id: addaccountIdto theopenai-codexauth record or use an access token that carries the account id claim.provider 'openai-codex' requires provider-keyed OAuth auth: do not use--api-keyorMC_API_KEYfor Codex OAuth.missing auth for provider 'openai': configureopenaias a custom provider first, or selectopenai-codexafter/login openai-codex.401/403from Codex backend: token may be expired, scoped incorrectly, or from a mismatched account. Re-run/login openai-codex; do not paste tokens into logs.- Wrong provider selected: check CLI flags, environment variables, cwd
.magi-code/settings.json, then global settings. See Configuration.
Session, context, and skill problems
- Resume fails: verify the session id exists under
~/.magi-code/sessions. - Broad session permissions on Unix: run
magi-code sessions repair-permissions --dry-runto inspect eligible repairs, then run the command interactively or with--yes. It resolvesMC_HOME, never recurses or follows links, and fails closed on unsafe layouts. Default confirmation requires TTYs. - Broken skills: check that each
SKILL.mdis readable and located under a supported skill root. - Unexpected instructions: check both
~/.magi-code/AGENTS.mdandAGENTS.mdin the directory where you launchedmagi-code.
Provider stream timeouts
provider stream idle timeout after 120s without bytes: the transport received no bytes for 120 seconds.provider stream no semantic progress before timeout: chunks arrived but produced no text, reasoning, tool, usage, or completion events for 60 seconds.
Either can appear as an incomplete partial response after progress. Check provider/network health before retrying. Failed or cancelled partial assistant text remains in session history.
For hook failures, use the hook troubleshooting table. Never include tokens or raw auth output in bug reports.