Home/End in ask_user answer input also scroll the timeline to top/bottom
まだ誰も着手していません。
評価
調査の方向性
v1.0.52 (#3470)で追加されたHome/Endのスクロールショートカットを見つけ、ask_userダイアログにフォーカスがあるときにカーソル位置をどのように確認するかを追ってください。このissueの手順で再現し、回答欄でHomeとEndを押すとタイムラインをスクロールせずにカーソルが移動することを確認してください。また、通常のチャット入力欄が、ドキュメントに記載された2回押しの動作を引き続きサポートしていることも確認してください。
索引モデルが 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.2k
- フォーク
- 2k
- 平均マージ
- 10時間 20分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-cli のほかの issue
-
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 ·
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/copilot-cli#4909 ·
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/copilot-cli#4906 ·
github/copilot-cli の issue をすべて見る
似ている issue
-
darwin zsh
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
carapace-sh/carapace-bin#3846 ·
メンテナーはふだん 1 日以内に返信
-
out-of-date
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
CachyOS/CachyOS-PKGBUILDS#1981 ·
メンテナーはふだん 1 日以内に返信
-
area: backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
snapotter-hq/SnapOtter#2415 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
omacom/try-omarchy#343 ·
メンテナーはふだん 1 日以内に返信
-
docs: AGENTS.md has no rule against running deploy scripts into the owner's game install対応中かも @thesprockee が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
EchoTools/nevr-runtime#524 ·
メンテナーはふだん 1 日以内に返信