Home/End in ask_user answer input also scroll the timeline to top/bottom
還沒有人認領這個 Issue。
評估
研究方向
找出 v1.0.52 (#3470) 中新增的 Home/End 捲動快速鍵,並追蹤 ask_user 對話框取得焦點時,它如何檢查游標位置。依照此 issue 中的步驟重現,接著確認在回答欄位按 Home 和 End 會移動游標而不捲動時間軸;確認一般聊天輸入欄仍支援文件所述的按兩次行為。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Shell
- 星號
- 11.3k
- 分支
- 2k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/copilot-cli 的其他 Issue
-
area:configuration area:input-keyboard
難度 2/5 1-3 小時 新手友好度 62/100
github/copilot-cli#5159 ·
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#5147 · 1 則留言 ·
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4996 ·
-
triage
難度 1/5 1 小時以內 新手友好度 88/100
github/copilot-cli#4963 · 1 則留言 ·
-
triage
難度 2/5 1-3 小時 新手友好度 75/100
github/copilot-cli#4932 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
Add Photocraft未關閉enhancement
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
-
bug
難度 2/5 1-3 小時 新手友好度 62/100
-
needs-triage
難度 2/5 1-3 小時 新手友好度 84/100
gke-labs/kube-agents#3394 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆