Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Home/End in ask_user answer input also scroll the timeline to top/bottom

オープン 初心者向け
#5,113 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
shell
領域
cli

調査の方向性

v1.0.52 (#3470)で追加されたHome/Endのスクロールショートカットを見つけ、ask_userダイアログにフォーカスがあるときにカーソル位置をどのように確認するかを追ってください。このissueの手順で再現し、回答欄でHomeとEndを押すとタイムラインをスクロールせずにカーソルが移動することを確認してください。また、通常のチャット入力欄が、ドキュメントに記載された2回押しの動作を引き続きサポートしていることも確認してください。

索引モデルが issue の本文から書いたものです。

説明

area:input-keyboard
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
  1. Start an interactive session (alt-screen mode) with enough history to make the timeline scrollable.
  2. Ask the agent something that makes it call ask_user with a free-form answer.
  3. Type a few words in the answer field, move the cursor to the middle, then press Home.
  4. 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 single ESC [ H per Home press.
  • Shell: fish
主要言語
Shell
スター
11.2k
フォーク
2k
平均マージ
10時間 20分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-cli のほかの issue

github/copilot-cli の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。