Input field background renders black with near-invisible text (low contrast) mid-session
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
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.).
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece reproduzindo o problema no copilot dentro do tmux com TERM=tmux-256color e, em seguida, observe o comportamento de theme ou color-mode nas possíveis alterações de sessão listadas. Rastreie o estado de renderização do CLI TUI quando apenas o campo de entrada fica preto e verifique se o campo mantém um contraste apropriado para o theme durante toda a sessão e depois de executar reset.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- shell
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 52/100