github / github/copilot-cli

Colors are completely off in tmux

Abierto
#4,292 0 comentarios 3 reacciones 0 asignados Ver en GitHub
area:terminal-rendering area:theming-accessibility
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### 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:
Image

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:
```shell
❯ 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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce la discrepancia de colores del tema claro con Copilot CLI 1.0.61 dentro y fuera de tmux, siguiendo la configuración indicada de WSL2, NixOS, Windows Terminal y Fish. Empieza comparando los valores del entorno y la configuración de tmux con issue #4212 e issue #135. Se considera terminado cuando el tema claro o automático muestra los mismos colores legibles al abrir el menú de comandos con "/" dentro y fuera de tmux.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.