github / github/copilot-cli

Colors are completely off in tmux

オープン
#4,292 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:terminal-rendering area:theming-accessibility
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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:

❯ 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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

記載されている WSL2、NixOS、Windows Terminal、Fish の設定に従い、tmux 内外で Copilot CLI 1.0.61 を使用してライトテーマの色の不一致を再現します。まず、tmux の環境値と設定を issue #4212 および issue #135 と比較します。tmux 内外で "/" を入力してコマンドメニューを開いたときに、ライトテーマまたは自動テーマで同じ読みやすい色が表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。