Input field background renders black with near-invisible text (low contrast) mid-session
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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.).
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố trong copilot bên trong tmux với TERM=tmux-256color, sau đó quan sát hành vi của theme hoặc color-mode qua các thay đổi phiên có thể xảy ra được liệt kê. Theo dõi trạng thái kết xuất CLI TUI khi chỉ trường nhập liệu chuyển thành màu đen, và xác minh rằng trường này duy trì độ tương phản phù hợp với theme trong suốt phiên cũng như sau khi chạy reset.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100