Assistant: PageUp and Home in a text field scroll the transcript

Aperta Adatta ai principianti
#563 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
html, javascript
Ambito
frontend

Direzione di ricerca

Inizia dalla condizione di protezione chiave in capsules/assistant/browser/agent-stream.js e dalla matrice degli input reali in scripts/fixtures/assistant-follow-input.html. Riproduci PageUp e Home mentre il focus è in un campo di testo, quindi controlla i casi dei pulsanti dei messaggi in Chromium e WebKit. Il lavoro è concluso quando i tasti nei campi di testo non fanno scorrere la conversazione e le due aspettative della matrice corrispondono al comportamento segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

In Assistant, PageUp or Home pressed while typing in a text field (input, textarea, select or [contenteditable]) scrolls the whole transcript, even when the field itself has nothing to scroll. Same on develop (30b166b05) and on the Jump to latest fix branch, in Chromium and in system WebKit (Safari 26.6.2).

Measured with real key events (Grok review of fix/assistant-jump-flash at 0f7ac56f4, report /private/tmp/cursor-runs/review-jump-flash-r10.report.md, section "Shared cases to file"): Chromium PageUp leaves the transcript at top 1820 (380 px from the end), WebKit at top 1840, Home goes to top 0. The key guard in capsules/assistant/browser/agent-stream.js returns for these targets but does not stop the key, so the browser scrolls the nearest scrollable ancestor, the transcript.

Expected: keys typed inside a text field act on that field only. The transcript moves only for keys aimed at it (focus on the transcript, a message button, or the page body).

Follow behaviour after that scroll is correct and is not part of this issue: the reader really moved, so follow turns off and a growing reply does not pull them back.

When fixing, also correct two expectations in the real-input matrix (scripts/fixtures/assistant-follow-input.html) that the review found wrong: Shift+Space on a message button and WebKit ArrowUp on a message button do not scroll, so they should expect follow to stay on, not a scroll away.

Lingua principale
Rust
Stelle
6
Fork
2
Merge medio
1g 3h
PR unite (30g)
42

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di elastos/elastos-runtime

Tutte le issue di elastos/elastos-runtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.