feat(tui): live theme override and dynamic CODEX_HOME paths

set_theme_override now updates the runtime theme immediately instead
of only setting the OnceLock, enabling live switching from /theme.
Replace hardcoded ~/.codex/themes references with resolved
$CODEX_HOME/themes paths in warnings, schema docs, and picker subtitle.
This commit is contained in:
Felipe Coury
2026-02-10 20:59:27 -03:00
parent 987db6aaf6
commit f72e7bf529
6 changed files with 51 additions and 19 deletions

View File

@@ -1403,7 +1403,7 @@
},
"theme": {
"default": null,
"description": "Syntax highlighting theme name (kebab-case).\n\nWhen set, overrides automatic light/dark theme detection. Run with `--list-themes` or see docs for available names.",
"description": "Syntax highlighting theme name (kebab-case).\n\nWhen set, overrides automatic light/dark theme detection. Use `/theme` in the TUI or see `$CODEX_HOME/themes` for custom themes.",
"type": "string"
}
},