Colors are completely off in tmux
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the bug
When having a light theme, Copilot CLI light theme's colors are completely wrong when running in tmux. Outside tmux, everything's fine.
tmux vs regular shell:
The problem isn't just the aesthetics, some text is genuinely unreadable (like bright yellow on light background in the screenshot above).
Affected version
GitHub Copilot CLI 1.0.61
Steps to reproduce the behavior
- Set a light terminal theme
- Set the theme to "light" or "auto" in Copilot CLI
- Spawn the command menu with "/"
Expected behavior
Exactly the same color in and outside tmux.
Additional context
Env:
- WSL2, NixOS
- Terminal emulator: Windows Terminal
- Fish shell
In tmux:
❯ echo TERM=$TERM; tput colors
TERM=tmux-direct
16777216
❯ echo $COLORTERM
truecolor
Relevant tmux config:
# Enable true color support
set-option -as terminal-features ',*:RGB'
set -ga update-environment "COLORTERM"
set -ga update-environment "COLORFGBG"
set-environment -g COLORTERM "truecolor"
Issue #4212 seems related but I'm not sure if it's exactly the same. There is also issue #135 but it hasn't received any attention in months.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere die Farbabweichung im Light-Theme mit Copilot CLI 1.0.61 innerhalb und außerhalb von tmux und befolge dabei die aufgeführte Einrichtung für WSL2, NixOS, Windows Terminal und Fish. Vergleiche zunächst die Umgebungswerte und die Konfiguration von tmux mit issue #4212 und issue #135. Als abgeschlossen gilt die Aufgabe, wenn das Light- oder Auto-Theme dieselben lesbaren Farben anzeigt, wenn das Befehlsmenü innerhalb und außerhalb von tmux mit "/" geöffnet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100