[Bug] Progress bar visibly flickers in Ptyxis 50.1 but not in Zed terminal
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 70/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, typescript
- Bereich
- cli
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8.1k
- Forks
- 226
- Ø Merge
- 1 T. 10 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus bombshell-dev/clack
-
[Bug] Prompts never settle when stdin endsEvtl. vergeben @MFA-G hat das vor 1 Tag übernommen. Offen
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 55/100
bombshell-dev/clack#615 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
bombshell-dev/clack#597 ·
-
rfc: accessible modeOffenenhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
bombshell-dev/clack#585 · 1 Kommentar · 1 Reaktion ·
-
[Bug] Spinner does not run `onCancel` function on `Ctrl + C`Evtl. vergeben @cyphercodes hat das vor 110 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
bombshell-dev/clack#573 · 1 Kommentar · 2 Reaktionen ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
bombshell-dev/clack#565 · 1 Kommentar · 1 Reaktion ·
Alle Issues in bombshell-dev/clack
Ähnliche Issues
-
Edit: Travel Mix (RO)Offencheck:failed streams:edit
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
iptv-org/iptv#55901 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 2 Tagen
-
package:ios ships XCFrameworks with absolute symlinks, which SwiftPM refuses to extractEvtl. vergeben @cusnirvladislav hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
callstackincubator/rock#740 ·
-
S: triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
area:workflow bug ready-for-human
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
fil-donadoni/tolaria#6108 ·
Maintainer antworten meist innerhalb von 1 Tag