Skip to content

fix(tui): respect --style / config over GLAMOUR_STYLE env - #993

Open
arimu1 wants to merge 1 commit into
charmbracelet:masterfrom
arimu1:fix/953-tui-respect-style
Open

fix(tui): respect --style / config over GLAMOUR_STYLE env#993
arimu1 wants to merge 1 commit into
charmbracelet:masterfrom
arimu1:fix/953-tui-respect-style

Conversation

@arimu1

@arimu1 arimu1 commented Jul 19, 2026

Copy link
Copy Markdown

Description

runTUI previously applied the resolved CLI/config style only when GLAMOUR_STYLE failed validation. A valid env value (including auto or dark) therefore ignored -s light / config style in TUI mode.

Now an explicit non-auto style from flags/config wins; otherwise the env value is used, then auto.

Motivation and Context

Fixes #953.

How Has This Been Tested?

  • go test ./...
  • Platform: macOS aarch64

Checklist

Made with Cursor

When GLAMOUR_STYLE was set to a valid value such as auto or dark, the
TUI ignored -s / style from flags and config. Prefer an explicit
non-auto style, then fall back to the env value (charmbracelet#953).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI doesn't respect --style

1 participant