Troubleshooting & Runtime Diagnostics
CONTENTS
When investigating failures, start with CORDIS_LOG=debug mizar exec "ping" to inspect runtime traces, or match your symptom below.
1. Routing, Credentials & TLS Networks
| Symptom | Cause | Fix |
|---|---|---|
no LLM provider or route configured | No env credentials, no models.json, and no --provider mock | Export API_KEY + BASE_URL + MODEL, or run mizar --provider mock --model mock-v1 |
unknown provider "<name>" | --provider matches neither built-ins nor models.json keys | Verify models.json provider key, or add --protocol and --base-url |
| Corporate HTTPS proxy TLS verification error | Private CA root missing from Rust reqwest client trust store | Export SSL_CERT_FILE, CURL_CA_BUNDLE, REQUESTS_CA_BUNDLE, or NODE_EXTRA_CA_CERTS pointing to your .pem bundle |
| Slow startup in air-gapped networks | Background GitHub release check timing out (6s) | Set export MIZAR_OFFLINE=1 or export MIZAR_SKIP_VERSION_CHECK=1 |
2. Gateway 400s, Truncation & Loops
When routing through OneAPI, LiteLLM, vLLM, Ollama, or custom OpenAI-compatible proxies:
- Gateway rejects
developerrole: Set"supportsDeveloperRole": falseinsidecompat. - Gateway rejects
stream_options/include_usage: Set"supportsUsageInStreaming": false. - Gateway rejects
max_completion_tokensormax_output_tokens: Set"maxTokensField": "max_tokens"and"supportsMaxOutputTokens": false. - Reasoning endpoint rejects
temperature/reasoning_effort: Disable via"supportsTemperature": falseor"supportsReasoningEffort": false. execexits1withcode=max_tokens: Response hit output token ceiling; raise--max-tokensormodels[].maxTokens.repeat-tool-guardalerts fire repeatedly: PressCtrl+Tto inspect/traceHotspots & Inspector for repeated validation errors or missing paths.
3. JSONL Persistence, Blobs & Tool Installation
- Startup or exit persistence errors (
code=storage/ TUI error banner): Check permissions on~/.mizar/sessions, redirect viaMIZAR_SESSIONS_DIRorsettings.jsonsessionsDir, or run with--no-persist/MIZAR_SESSIONS_DIR=memoryin ephemeral environments. - Missing image blob warning on
--resume: If a file underblobs/<sha256>was deleted, the tolerant JSONL loader warns and strips only the missing attachment while recovering the rest of the session cleanly. - Unpaired
tool_callfrom a past crash:/treeforking and-r <id>resume automatically synthesize healing results on replay. - Missing
rgor slow GitHub download: Interactive TUI auto-installsrg/fdon demand (or runmizar install-tools --force); headlessexecuses only locally available binaries. Slow/stalled downloads fall back tohttps://ghfast.topby default; setMIZAR_OFFLINE=1in air-gapped networks.
4. MCP, codemode & Instructions
- Only 4 tools appear by default, or MCP tools are hidden from top-level schemas:
MinimalCodingexposesread,bash,edit, andwriteby default, andcodemodestays dormant unless activated via--tools codemode,codemode.enabled, or MCPcodemodeservers (autoEnableCodemode: true). Inspect live tool tiers with/toolsand server states with/mcp, or set"exposure": "direct"selectively inmcp.json. codemode120s timeout: Long builds/test suites inside a JS script should invoke standalonebash(up to600s) or raisecodemode.timeoutMsinsettings.json. To turn offcodemode, add"codemode"todisabledPlugins.- Subdirectory
AGENTS.mdedit not visible mid-session:mizar-instructionsloads statically at startup for KV-cache stability. Restart the session and run/instructionsto verify loaded files andmaxByteseviction order.
5. Terminal Colors, Clipboard & Selection
- Degraded colors in terminal/CI: Ensure
COLORTERM=truecoloris exported or switch via/theme ansi16; hide Nerd Font icons withMIZAR_TUI_PILL_ICONS=0. - Cannot drag-select text across Fullscreen UI: Press
F2(/mouse) to pause in-app mouse capture for native selection, or run--inline(/view inline) to flush turns to native terminal scrollback. - Red JSON config banner on startup: Mizar requires strict JSON — strip
//comments and trailing commas fromsettings.json,models.json, andmcp.json.