feat(tui): support custom background color (#1034)

This commit is contained in:
Hunter Bown
2026-05-07 06:15:58 -05:00
committed by GitHub
parent dc3fef1346
commit 628fb3c4a8
11 changed files with 269 additions and 17 deletions
+6 -2
View File
@@ -287,8 +287,12 @@ Common settings keys:
- `show_tool_details` (on/off)
- `locale` (`auto`, `en`, `ja`, `zh-Hans`, `pt-BR`; default `auto`): UI chrome
locale. `auto` checks `LC_ALL`, `LC_MESSAGES`, then `LANG`; unsupported or
missing locales fall back to English. This does not force model output
language.
missing locales fall back to English. The runtime also exposes the resolved
locale in the system prompt so V4 models use it as the default natural
language for reasoning and replies.
- `background_color` (`#RRGGBB`, `RRGGBB`, or `default`): optional main TUI
background color applied to the root, header, transcript, and footer
surfaces while preserving panel contrast.
- `cost_currency` (`usd`, `cny`; default `usd`): currency used by the footer,
context panel, `/cost`, `/tokens`, and long-turn notification summaries. The
aliases `rmb` and `yuan` normalize to `cny`.
+3 -1
View File
@@ -37,7 +37,9 @@ Fallback:
- Missing or unsupported configured locales fall back to English.
- `auto` falls back to English when no supported environment locale is detected.
- UI locale is separate from model prompt language. Users still ask the model for a response language in the prompt.
- The resolved locale is included in the system prompt and used as the default
natural language for V4 reasoning and replies. Users can still switch
languages mid-session by writing in a different language.
## Planned Global South QA Matrix