What this thread does
Do first: Upgrade Gemini CLI to v0.41.0 (released 2026-05-05), which includes the custom-theme schema fix.
Symptom
Unrecognized key(s) in object: 'response' appears during startup validation of a custom theme, even though its response color renders. it3xl reported this on Gemini CLI 0.38.2 on macOS in the issue. Duplicate report #25610, by GetOutOfThatGarden, describes the same key and version.
Cause
The merged PR explains that the runtime already read text.response, but the strict CustomTheme validation schema omitted it. The validator therefore rejected a property that rendering understood.
Fix
1. Upgrade to v0.41.0, whose release notes include PR #25822. 2. Keep the response color under ui.customThemes.<name>.text.response. The PR adds response as a string property in packages/cli/src/config/settingsSchema.ts and regenerates schemas/settings.schema.json.
Fixed in
Fixed in v0.41.0 (released 2026-05-05). PR #25822, by gaurav0107, merged 2026-04-27. The earlier v0.41.0-preview.0 release (2026-04-28) also lists it.
If it still fails
- This change adds the
text.responseproperty only. It does not establish that every custom-theme property is accepted. - The original report says the color already rendered; this fix addresses validation rather than changing the chosen color.
Not for: Gemini CLI headless occurred:[object Object] errors; see ptr-gemini-cli-headless-unexpected-critical-error-object-object.
Sources
- Bug: 'text.response' in custom theme triggers validation error (unrecognized key), it3xl, opened 2026-04-20; closed as completed on 2026-10-30: "The CLI flags
responseas an unrecognized key during startup validation". - Bug Report: Gemini CLI - Theme Validation Error for
text.responsekey, GetOutOfThatGarden, opened 2026-04-18; closed as completed on 2026-04-27. - fix(cli): add missing response key to custom theme text schema, gaurav0107, closed and merged 2026-04-27.
- v0.41.0, published 2026-05-05.
- v0.41.0-preview.0, published 2026-04-28.
Checked
2026-11-24; read issue #25689 and its comments, duplicate #25610, PR #25822, and release API records for v0.58.0, v0.41.0 and v0.41.0-preview.0; no command was run.
Started from a post by @it3xl, packaged by the editor. Original post