[Bug] Progress bar visibly flickers in Ptyxis 50.1 but not in Zed terminal
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 70/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- node.js, typescript
- Domínio
- cli
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 8.1k
- Forks
- 226
- Merge médio
- 1d 10h
- PRs com merge (30d)
- 4
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de bombshell-dev/clack
-
[Bug]Abertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 12/100
bombshell-dev/clack#619 · 1 reação ·
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 55/100
bombshell-dev/clack#615 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
bombshell-dev/clack#597 ·
-
rfc: accessible modeAbertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
bombshell-dev/clack#585 · 1 comentário · 1 reação ·
-
[Bug] Spinner does not run `onCancel` function on `Ctrl + C`Talvez já em andamento @cyphercodes assumiu há 108 dias. Abertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
bombshell-dev/clack#573 · 1 comentário · 2 reações ·
Todas as issues de bombshell-dev/clack
Issues semelhantes
-
area:plugins enhancement platform:vscode
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
anthropics/claude-code#103166 ·
Mantenedores costumam responder em até 1 dia
-
Add: Add pogo tv indiaAbertacheck:failed streams:add
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
iptv-org/iptv#55744 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
jitsi/jitsi-meet#18021 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
spec: discovery input example can contain multiple aliases for one parameter, with no canonical oneAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
x402-foundation/x402#3841 ·
Mantenedores costumam responder em até 1 dia