[Bug] Progress bar visibly flickers in Ptyxis 50.1 but not in Zed terminal
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 70/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- node.js, typescript
- 領域
- cli
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- TypeScript
- 星號
- 8.1k
- 分支
- 225
- 平均合併
- 12 小時 54 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bombshell-dev/clack 的其他 Issue
-
bug
難度 4/5 3-5 天 新手友好度 48/100
bombshell-dev/clack#625 ·
維護者通常 1 天內回覆
-
[Bug] Prompts never settle when stdin ends可能已有人在做 @MFA-G 於 6 天前認領。 未關閉
難度 3/5 半天 新手友好度 55/100
bombshell-dev/clack#615 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 30/100
bombshell-dev/clack#597 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
bombshell-dev/clack#585 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
[Bug] Spinner does not run `onCancel` function on `Ctrl + C`可能已有人在做 @cyphercodes 於 116 天前認領。 未關閉bug
難度 3/5 1-2 天 新手友好度 68/100
bombshell-dev/clack#573 · 1 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
查看 bombshell-dev/clack 的全部 Issue
相似的 Issue
-
freshness freshness:observed-only
難度 2/5 1-3 小時 新手友好度 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
area: web
難度 2/5 1-3 小時 新手友好度 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
難度 2/5 1-3 小時 新手友好度 72/100
expressjs/expressjs.com#2549 · 1 個 reaction ·
維護者通常 1 天內回覆
-
bug good first issue hacktoberfest
難度 2/5 1-3 小時 新手友好度 88/100
codercops/discord-bot#101 · 1 則留言 ·
維護者通常 1 天內回覆