gemini-cli PR propagates real MCP errors in headless mode instead of useless hints
Lokesh0652H · ghdev · 2026-11-29
A community PR (#30527) on google-gemini/gemini-cli fixes headless MCP diagnostics that suppressed the underlying error and suggested the interactive /mcp list command, which can't be used in non-interactive runs. The change detects headless mode via cliConfig.isInteractive(), emits diagnostics with server attribution, severity, and sanitized error messages (via sanitizeErrorMessage for credential redaction), and retains enriched errors in lastErrors, leaving interactive mode unchanged. Validation includes a targeted vitest suite (43 tests covering error propagation, dedup, and secret redaction) plus typecheck.
More from coding & agent
- Dev builds a code-generated cyberpunk city with Astra 6.2, shares skills — reach_vb · 2026-11-29
- Open-source local voice studio VoiceStudio tops 120k GitHub stars — alex_verem · 2026-11-29
- Dev take: Claude vs Codex hardly matters for 95% of coding tasks — tak3sh8 · 2026-11-29
- Sandbagging-audit skill flags serious integrity bugs in Opus 5.5 code review — Kyrannio · 2026-11-29
- Relayon builds a credential-free MCP layer between agents and apps, asks which actions to gate — anishtr4 · 2026-11-29
- Applied AI Cohort 6 wraps up with biggest overhaul yet: evals, multi-agent systems, cost modeling — arpit_bhayani · 2026-11-29