AI DJ prompt: the caret stays at the end of the text when moving the cursor back to edit
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #946 di @JosephAnderson234 — integrata
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
Read src/tui/ui/ai_dj.rs and src/tui/handlers/ai_dj.rs, then build with cargo run --features ai-dj and reproduce by moving the cursor left in the prompt. The issue reports an open linked pull request, so the work may already be underway. Done means the caret is drawn at the cursor position while editing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
In the AI DJ screen, the caret (▏) in the "Ask the DJ" prompt is always painted at the end of the text, even when the cursor is somewhere else. If I type a message, press Left a few times to fix an earlier word, and then type or Backspace, the edit goes to the right place, but the caret stays at the end. You can't see where the next character will go.
I first noticed it with Claude (through the claude CLI) as the DJ backend, but the prompt is the same for every backend, so it should happen with all of them.
Expected: the caret sits at the cursor position, between the characters being edited.
Cause
The key handler (src/tui/handlers/ai_dj.rs) keeps input_idx and input_cursor correct for Left/Right, Home/End, Backspace and Delete. draw_prompt in src/tui/ui/ai_dj.rs only uses the cursor to work out the horizontal scroll, then pushes the caret span after the whole visible text:
let mut spans = vec![Span::styled(visible, ...)];
if focused {
spans.push(Span::styled("▏", ...));
}
Steps to reproduce
- Build with the AI DJ (
cargo run --features ai-dj) and open the AI DJ screen - Type
mellow - Press Left twice
- See the caret still after
mellowinstead of betweenmellandow; typingxgivesmellxow, with the caret still at the end
Frontend
Terminal app
Source
Not about a source
spotatui version
0.47.0 (reproduced on main at ae9524b)
OS
Windows 11
How you installed spotatui
Built from source
- Lingua principale
- Rust
- Stelle
- 1.4k
- Fork
- 238
- Merge medio
- 11h 26m
- PR unite (30g)
- 195
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LargeModGames/spotatui
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
LargeModGames/spotatui#872 · 18 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Create Playlist: a long name runs past the input box and the cursor leaves itForse già presa @Aaqibhafeezkhan l’ha presa 3 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
LargeModGames/spotatui#829 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Text Emphasis off still bolds the selected row in every list and tableForse già presa @jaopdc11 l’ha presa 6 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
LargeModGames/spotatui#822 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Audio cache limitApertaenhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
LargeModGames/spotatui#957 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Soloist download failure logs no underlying causeForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 54/100
LargeModGames/spotatui#950 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LargeModGames/spotatui
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swc-project/swc-next#1165 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
Alive24/shea-symphony#574 ·
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
dev-five-git/devup-ui#879 ·
I maintainer di solito rispondono entro 11 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
farion1231/cc-switch#9038 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
FalkorDB/FalkorDB#3597 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni