openclaw/src/tui
Vincent Koc a3dc4b5a57
fix(tui): improve color contrast for light-background terminals (#40345)
* fix(tui): improve colour contrast for light-background terminals (#38636)

Detect light terminal backgrounds via COLORFGBG and apply a WCAG
AA-compliant light palette. Adds OPENCLAW_THEME=light|dark env var
override for terminals without auto-detection.

Uses proper sRGB linearisation and WCAG 2.1 contrast ratios to pick
whichever text palette (dark or light) has higher contrast against
the detected background colour.

Co-authored-by: ademczuk <ademczuk@users.noreply.github.com>

* Update CHANGELOG.md

---------

Co-authored-by: ademczuk <andrew.demczuk@gmail.com>
Co-authored-by: ademczuk <ademczuk@users.noreply.github.com>
2026-03-08 16:17:28 -07:00
..
components fix(tui): add OSC 8 hyperlinks for wrapped URLs (#17814) 2026-02-22 19:09:07 -05:00
theme fix(tui): improve color contrast for light-background terminals (#40345) 2026-03-08 16:17:28 -07:00
commands.test.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
commands.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
gateway-chat.test.ts fix(gateway): land #28428 from @l0cka 2026-03-07 22:51:08 +00:00
gateway-chat.ts fix(gateway): land #28428 from @l0cka 2026-03-07 22:51:08 +00:00
osc8-hyperlinks.test.ts fix(tui): add OSC 8 hyperlinks for wrapped URLs (#17814) 2026-02-22 19:09:07 -05:00
osc8-hyperlinks.ts fix(tui): add OSC 8 hyperlinks for wrapped URLs (#17814) 2026-02-22 19:09:07 -05:00
tui-command-handlers.test.ts TUI: type setSession test mocks 2026-03-07 18:33:46 -08:00
tui-command-handlers.ts fix: isolate TUI /new sessions per client 2026-03-08 02:31:15 +00:00
tui-event-handlers.test.ts fix(daemon): avoid freezing Windows PATH in task scripts (#39139, thanks @Narcooo) 2026-03-07 21:15:01 +00:00
tui-event-handlers.ts fix(daemon): avoid freezing Windows PATH in task scripts (#39139, thanks @Narcooo) 2026-03-07 21:15:01 +00:00
tui-formatters.test.ts Secrets: add inline allowlist review set (#38314) 2026-03-06 19:35:26 -05:00
tui-formatters.ts fix(tui): preserve credential-like tokens in render sanitization 2026-03-05 21:06:07 -08:00
tui-input-history.test.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
tui-local-shell.test.ts test(integration): dedupe messaging, secrets, and plugin test suites 2026-03-02 07:13:11 +00:00
tui-local-shell.ts Exec/ACP: inject OPENCLAW_SHELL into child shell env (#31271) 2026-03-01 20:31:06 -08:00
tui-overlays.test.ts chore: Fix types in tests 34/N. 2026-02-17 15:50:07 +09:00
tui-overlays.ts
tui-session-actions.test.ts Memory: handle SecretRef keys in doctor embeddings (#36835) 2026-03-05 20:05:59 -06:00
tui-session-actions.ts fix(tui): prevent stale model indicator after /model 2026-03-05 17:39:19 -08:00
tui-status-summary.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
tui-stream-assembler.test.ts fix(tui): render final event error when assistant output is empty (#14687) 2026-03-05 18:16:43 -08:00
tui-stream-assembler.ts fix(tui): render final event error when assistant output is empty (#14687) 2026-03-05 18:16:43 -08:00
tui-submit-test-helpers.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
tui-types.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
tui-waiting.test.ts chore: Enable `typescript/no-explicit-any` rule. 2026-02-02 16:18:09 +09:00
tui-waiting.ts
tui.submit-handler.test.ts refactor(tui): dedupe handlers and formatter test setup 2026-02-22 14:08:51 +00:00
tui.test.ts feat(tui): infer workspace agent when launching TUI (#39591) 2026-03-08 13:31:11 +03:00
tui.ts feat(tui): infer workspace agent when launching TUI (#39591) 2026-03-08 13:31:11 +03:00