Commit c28cb23
committed
fix: use default-foreground ANSI so splash and spinner stay readable in light-mode terminals
Bright-white (\033[97m) and plain-white (\033[37m) collapse to invisible
on terminals where the foreground IS white — the user reports 'Team
License' and 'Syncing CodeGraph' rendering blank on a light-mode iTerm
profile. Same problem with Rich's 'bold white' style.
Fix: switch every body-text white to \033[39m (default foreground) and
'bold white' to plain 'bold' in the installer. Default foreground inherits
the terminal's theme so text shows black on light, white on dark, and
stays readable on both.
Add launcher/tests/unit/test_ansi_safety.py to ban \033[97m, \033[37m,
'bold white', '[white]', and '[dim white]' from launcher/ + installer/
sources so the regression cannot reappear. The single legitimate
white-on-red 'Pilot disabled' banner is allowlisted explicitly.1 parent f1ee3ed commit c28cb23
6 files changed
Lines changed: 3 additions & 3 deletions
File tree
- installer
- launcher
- statusline
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments