github / github/copilot-cli

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

Offen
#4,648 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

triage
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Problem in copilot innerhalb von tmux mit TERM=tmux-256color zu reproduzieren, und beobachte anschließend das Verhalten von theme oder color-mode über die aufgeführten möglichen Sitzungsänderungen hinweg. Verfolge den CLI-TUI-Rendering-Zustand, wenn nur das Eingabefeld schwarz wird, und überprüfe, dass das Feld während der gesamten Sitzung und nach dem Ausführen von reset den für das theme passenden Kontrast beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.