Home/End in ask_user answer input also scroll the timeline to top/bottom
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 66/100
Hướng nghiên cứu
Tìm phím tắt cuộn Home/End được thêm trong v1.0.52 (#3470) và theo dõi cách nó kiểm tra vị trí con trỏ khi hộp thoại ask_user đang được focus. Tái hiện lỗi theo các bước trong issue này, sau đó xác nhận rằng Home và End trong trường trả lời di chuyển con trỏ mà không cuộn dòng thời gian; kiểm tra xem ô nhập chat thông thường vẫn hỗ trợ hành vi nhấn hai lần như được tài liệu hóa hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
While the agent is asking a question (ask_user / "Asking user"), pressing Home or End
inside the answer input moves the input cursor and also scrolls the conversation
timeline to the very top / bottom.
The Home/End scroll shortcut (added in v1.0.52, see #3470) is meant to fire only when
the text cursor is already at the start/end of the prompt. However, the check seems to
look at the main chat prompt rather than the input that currently has focus. While the
question dialog is open, the main prompt is usually empty, so its cursor counts as being
at both the start and the end. As a result, every Home/End press inside the dialog
triggers the scroll.
Ctrl+A / Ctrl+E inside the dialog move the cursor without scrolling, as expected.
Affected version
GitHub Copilot CLI 1.0.95.
Steps to reproduce the behavior
- Start an interactive session (alt-screen mode) with enough history to make the timeline scrollable.
- Ask the agent something that makes it call
ask_userwith a free-form answer. - Type a few words in the answer field, move the cursor to the middle, then press Home.
- The cursor jumps to the start of the answer, and the timeline also jumps to the top.
End behaves the same way: the timeline jumps to the bottom.
Expected behavior
While the question dialog has focus, Home/End should only move the cursor in the dialog's
input. Either scroll only when the dialog's own cursor is already at the start/end, or
turn off the timeline Home/End scrolling while the dialog is open.
Additional context
- The normal chat prompt works as documented: the first Home moves the cursor, and the
second Home scrolls. - OS: Linux (WSL2 on Windows 11)
- CPU architecture: x86_64
- Terminal emulator: WezTerm (Windows) → WSL → herdr 0.9.1 (terminal multiplexer).
herdr forwards a singleESC [ Hper Home press. - Shell: fish
- Ngôn ngữ chính
- Shell
- Star
- 11.3k
- Fork
- 2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của github/copilot-cli
-
area:models area:sessions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/copilot-cli#5189 · 1 reaction ·
-
area:configuration area:input-keyboard
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
github/copilot-cli#5159 ·
-
area:sessions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#5147 · 1 bình luận ·
-
area:sessions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4996 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
github/copilot-cli#4963 · 1 bình luận ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnableCó thể đã có người làm @dannyward630 đã nhận hôm nay. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
yunaremaia/git-api#61 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update nwg-panel to 0.12.3Có thể đã có người làm @zen0bit đã nhận hôm nay. Đang mởpackage-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alunduil/alunduil-chezmoi#963 ·
Maintainer thường phản hồi trong vòng 1 ngày