Skip to content

fix: adaptive color scheme for light terminal backgrounds (#12330) - #12337

Closed
vominh1919 wants to merge 1 commit into
NousResearch:mainfrom
vominh1919:fix/12330-light-background-adaptive-colors
Closed

fix: adaptive color scheme for light terminal backgrounds (#12330)#12337
vominh1919 wants to merge 1 commit into
NousResearch:mainfrom
vominh1919:fix/12330-light-background-adaptive-colors

Conversation

@vominh1919

Copy link
Copy Markdown
Contributor

Fixes #12330

Text was hard to read on white/light terminal backgrounds. The existing light skins existed but were never auto-selected.

Changes:

  • hermes_cli/colors.py: Added 3-strategy terminal background detection (OSC 11 query, COLORFGBG env var, HERMES_LIGHT_BACKGROUND override). Colors class dynamically resolves darker ANSI variants for light backgrounds.
  • hermes_cli/skin_engine.py: Auto-selects warm-lightmode skin when light background detected.
  • cli.py: Replaced hardcoded ANSI codes in worktree functions with adaptive Colors.

…ixes NousResearch#12330)

- Add terminal background detection via OSC 11 query, COLORFGBG env var, and HERMES_LIGHT_BACKGROUND override
- Colors class dynamically resolves darker ANSI variants for light backgrounds
- skin_engine auto-selects warm-lightmode skin when light background detected
- Replace hardcoded ANSI codes in cli.py worktree functions with adaptive Colors
@mxnstrexgl

Copy link
Copy Markdown

✓ Automated scan: no security concerns. Terminal color fix only.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 23, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #11553 (open PR for light terminal detection) and #4807 (the underlying issue). May be competing implementations.

@teknium1

Copy link
Copy Markdown
Contributor

Closing as superseded by #17113.

Triage notes (medium confidence):
Merged PR #17113 'feat(tui): expand light-terminal auto-detection (HERMES_TUI_THEME, background hex)' (2026-04-28) plus #26137 already provide adaptive light-mode handling; main cli.py:1612 has COLORFGBG/OSC11 detection and hermes_cli/skin_engine.py warm-lightmode skin.

Thanks for the contribution — the underlying problem this PR addresses has been resolved by the linked PR on current main. If you believe this was closed in error, please comment and we'll reopen.

(Bulk-closed during a CLI PR triage sweep.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: The text of Hermes is hard to read on a white terminal background.

4 participants