Colors are completely off in tmux
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện sự không khớp màu của giao diện sáng bằng Copilot CLI 1.0.61 bên trong và bên ngoài tmux, theo thiết lập WSL2, NixOS, Windows Terminal và Fish được liệt kê. Bắt đầu bằng cách so sánh các giá trị môi trường và cấu hình tmux với issue #4212 và issue #135. Hoàn thành khi giao diện sáng hoặc tự động hiển thị cùng các màu dễ đọc khi mở menu lệnh bằng "/" ở cả bên trong và bên ngoài tmux.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100