Home/End in ask_user answer input also scroll the timeline to top/bottom
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 66/100
Piste de recherche
Trouvez le raccourci de défilement Home/End ajouté dans v1.0.52 (#3470) et suivez la manière dont il vérifie la position du curseur lorsque la boîte de dialogue ask_user est active. Reproduisez le problème en suivant les étapes de cet issue, puis confirmez que Home et End dans le champ de réponse déplacent le curseur sans faire défiler la chronologie ; vérifiez que la saisie normale du chat prend toujours en charge le comportement documenté en deux pressions.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 2k
- Merge moyen
- 10 h 20 min
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/copilot-cli
-
area:sessions
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
github/copilot-cli#4996 ·
-
triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
github/copilot-cli#4963 · 1 commentaire ·
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
github/copilot-cli#4932 ·
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
github/copilot-cli#4909 ·
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
github/copilot-cli#4906 ·
Toutes les issues de github/copilot-cli
Issues similaires
-
darwin zsh
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
carapace-sh/carapace-bin#3846 ·
Les mainteneurs répondent en général sous 1 jour
-
devtools: new version 1.5.3Ouverteout-of-date
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
CachyOS/CachyOS-PKGBUILDS#1981 ·
Les mainteneurs répondent en général sous 1 jour
-
area: backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
snapotter-hq/SnapOtter#2415 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
omacom/try-omarchy#343 ·
Les mainteneurs répondent en général sous 1 jour
-
docs: AGENTS.md has no rule against running deploy scripts into the owner's game installPeut-être pris @thesprockee l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
EchoTools/nevr-runtime#524 ·
Les mainteneurs répondent en général sous 1 jour