Input field background renders black with near-invisible text (low contrast) mid-session
Dieses Issue hat noch niemand übernommen.
- 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
- Run copilot inside a tmux session (TERM=tmux-256color).
- Use the CLI normally for a while (no manual /theme change).
- Observe the input field's background suddenly turns black with low-contrast/invisible text, while surrounding output text stays normal.
- 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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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