Colors are completely off in tmux
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the light-theme color mismatch using Copilot CLI 1.0.61 inside and outside tmux, following the listed WSL2, NixOS, Windows Terminal, and Fish setup. Start by comparing the tmux environment values and configuration with issue #4212 and issue #135. Done means the light or auto theme displays the same readable colors when the command menu is opened with "/" in and outside tmux.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100