[Bug] Progress bar visibly flickers in Ptyxis 50.1 but not in Zed terminal
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 70/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
- Ambito
- cli
Direzione di ricerca
Start by running the standalone repro.mjs script with @clack/[email protected] in Ptyxis and Zed, using both default output and --stderr; the issue reports flickering only in Ptyxis. Trace the progress animation and terminal output behavior in the package to identify what differs between the two terminals. Done means the progress updates no longer show a blank interval in the reported reproduction.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
- OS: Linux
- Node.js:
v24.13.0 - Package:
@clack/prompts - Package version:
1.8.1 - Affected terminal: Ptyxis
50.1 - GTK:
4.22.5(compiled against4.22.4) - VTE:
0.84.1(compiled against0.84.0)
Describe the bug
The entire progress line briefly disappears and reappears during animation in Ptyxis, producing visible rapid flickering/strobing. This is not just the spinner changing frames, repeated output, or the line moving onto another row.
The same standalone script does not visibly flicker in Zed's integrated terminal. Both stdout and stderr exhibit the issue in Ptyxis, while neither visibly flickers in Zed.
To reproduce
This reproduction uses only Clack, with short messages and no network requests during execution.
-
Create a standalone project:
mkdir clack-repro cd clack-repro npm init -y npm install @clack/[email protected] -
Save the following as
repro.mjs:import { progress } from '@clack/prompts' const bar = progress({ max: 5, indicator: 'timer', withGuide: false, ...(process.argv.includes('--stderr') ? { output: process.stderr } : {}), }) bar.start('Translating') try { for (let completed = 1; completed <= 5; completed++) { await new Promise((resolve) => setTimeout(resolve, 2000)) bar.advance(1, `Translated ${completed}/5`) } bar.stop('Done') } finally { bar.clear() } -
Run in Ptyxis with a terminal at least 80 columns wide, without piping or redirecting output:
node repro.mjs node repro.mjs --stderr -
Compare the same commands in Zed's integrated terminal.
| Terminal | Default stdout | --stderr |
|---|---|---|
| Ptyxis 50.1 | Visible flickering | Visible flickering |
| Zed integrated terminal | No visible flickering | No visible flickering |
Expected behavior
The progress animation updates without a visibly blank interval between frames.
- Lingua principale
- TypeScript
- Stelle
- 8.1k
- Fork
- 218
- Merge medio
- 1g 23h
- PR unite (30g)
- 6
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 bombshell-dev/clack
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
bombshell-dev/clack#597 ·
-
rfc: accessible modeApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
bombshell-dev/clack#585 · 1 commento · 1 reazione ·
-
[Bug] Spinner does not run `onCancel` function on `Ctrl + C`Forse già presa @cyphercodes l’ha presa 100 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
bombshell-dev/clack#573 · 1 commento · 2 reazioni ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
bombshell-dev/clack#565 · 1 commento · 1 reazione ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bombshell-dev/clack#564 · 1 reazione ·
Tutte le issue di bombshell-dev/clack
Issue simili
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
melgarafael/DeskcommCRM#2657 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
MystenLabs/MemWal#1163 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Mondriaan
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
knaw-huc/textannoviz#709 ·
I maintainer di solito rispondono entro 1 giorno
-
billion-context-pi
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ranxianglei/billion-context#2521 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno