Prompt box and highlighted menu items render invisible (dark-on-dark) inside tmux
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
### Describe the bug
Copilot CLI's prompt input box and highlighted/selected menu list items are unreadable (dark text on dark/matching background) when run inside tmux. The same session works correctly in a plain iTerm2 tab with no tmux.
During troubleshooting, ruled out the following:
• Stale COLORFGBG env var — unset it, no change.
• iTerm2 automatic light/dark profile switching — disabled it, no change.
• tmux truecolor passthrough — confirmed via tmux info that Tc / RGB report true after adding set -ga terminal-overrides ",xterm-256color:Tc" , and tmux capture-pane -e shows correct 24-bit RGB SGR codes are being preserved (not quantized), so this isn't a color-depth/passthrough issue.
• tmux allow-passthrough on is enabled; OSC 11 background-color queries do get a reply (confirmed manually with printf '\033]11;?\033\\' ), though the reply appears to arrive after Copilot's internal detection timeout in some tests.
• Restarting tmux server fully, restarting iTerm2 fully — no change.
• Switching Copilot's theme setting between default , dim , github — same problem persists in all of them, only inside tmux.
### Affected version
GitHub Copilot CLI 1.0.73. Run 'copilot update' to check for updates.
### Steps to reproduce the behavior
1. Launch iTerm2, start a tmux session, run copilot .
2. Type in the prompt input box, or open a menu with selectable items (e.g. /theme ).
3. Text in the prompt box / highlighted menu rows is invisible — same foreground/background color.
### Expected behavior
The colors should be legible regardless of being run inside tmux or not
### Additional context
_No response_
コントリビューションガイド
調査の方向性
報告ではソースファイルやテストは特定されていません。iTerm2 と tmux 内で GitHub Copilot CLI 1.0.73 を使って再現し、通常の iTerm2 タブと比較して、報告されている truecolor と OSC 11 の動作を調査してください。完了の条件は、一覧にあるテーマ全体で、tmux 内のプロンプトテキストとハイライトされたメニュー項目が読みやすい状態を保つことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100