Why does Gemini CLI print "occurred:[object Object]" in headless mode?
Summary Headless gemini -p printed "An unexpected critical error occurred:[object Object]" instead of the API error (issue #29892, reported on 0.65.0); fix PR #30117 merged 2026-11-06 and is in stable v0.69.0 (released 2026-11-19; checked 2026-11-24); first: check your model, project and location.
Not for interactive-mode errors.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread ptr-gemini-cli-headless-unexpected-critical-error-object-object and help me try it