[Bug] Progress bar visibly flickers in Ptyxis 50.1 but not in Zed terminal
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 70/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- node.js, typescript
- Domaine
- cli
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 8.1k
- Forks
- 218
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un 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 bombshell-dev/clack
-
Difficulté 3/5 Une demi-journée Accessibilité débutants 55/100
bombshell-dev/clack#615 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
bombshell-dev/clack#597 ·
-
rfc: accessible modeOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
bombshell-dev/clack#585 · 1 commentaire · 1 réaction ·
-
[Bug] Spinner does not run `onCancel` function on `Ctrl + C`Peut-être pris @cyphercodes l’a pris il y a 106 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
bombshell-dev/clack#573 · 1 commentaire · 2 réactions ·
-
enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 62/100
bombshell-dev/clack#565 · 1 commentaire · 1 réaction ·
Toutes les issues de bombshell-dev/clack
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
apache/rocketmq-dashboard#6872 ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
fab-geocommuns/RNB-site#539 ·
Les mainteneurs répondent en général sous 2 jours
-
Guest multiview tile label leaks raw virtual-source-id "Whip" instead of the guest name / slot labelOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Eyevinn/open-live-studio#211 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue
Difficulté 2/5 Une demi-journée Accessibilité débutants 72/100
sujithputta02/Esapay#13 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
Les mainteneurs répondent en général sous 1 jour