github / github/copilot-cli

Input field background renders black with near-invisible text (low contrast) mid-session

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

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

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the bug

Mid-session, only the command input field's background turned black, making typed text nearly invisible against it. The rest of the terminal/session output rendered normally and was unaffected. A standard terminal  reset  did not fix it, indicating the issue is in the CLI's own TUI rendering rather than a terminal-level escape sequence leak.

Affected version

Copilot CLI version: 1.0.81

Steps to reproduce the behavior
  1. Run  copilot  inside a tmux session (TERM=tmux-256color).
  2. Use the CLI normally for a while (no manual  /theme  change).
  3. Observe the input field's background suddenly turns black with low-contrast/invisible text, while surrounding output text stays normal.
  4. Run  reset  in the terminal — input field remains black.
Expected behavior

Input field should maintain consistent theme-appropriate contrast for the whole session.

Additional context

Suspected cause: Theme/color-mode detection or caching bug specific to tmux ( TERM=tmux-256color ), possibly triggered by a state change during the session (resize, mode switch, subagent/tool output, etc.).

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

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

はじめの一歩

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

調査の方向性

まず、TERM=tmux-256color を設定した tmux 内の copilot で問題を再現し、次に、列挙されている可能なセッション変更全体で theme または color-mode の動作を観察します。入力フィールドだけが黒くなった場合の CLI TUI のレンダリング状態を追跡し、セッション中ずっと、また reset の実行後も、そのフィールドが theme に適したコントラストを維持することを確認します。

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

評価

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

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

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