[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix rendering order

James Garbutt (Feb 24, 2026, 12:33 PM UTC) 505e7ff1 c6c27680

+6 -6
+5 -5
packages/core/src/prompts/spinner.ts
··· 29 29 #onCancel?: () => void; 30 30 #message: string = ''; 31 31 #silentExit: boolean = false; 32 - #exitCode: number | undefined = undefined; 32 + #exitCode: number = 0; 33 33 34 34 constructor(opts: SpinnerOptions) { 35 35 super(opts); ··· 64 64 65 65 this.#reset(); 66 66 this.#silentExit = silent === true; 67 - this.#exitCode = exitCode; 67 + this.#exitCode = exitCode ?? 0; 68 68 69 69 if (msg !== undefined) { 70 70 this.#message = msg; ··· 116 116 117 117 #reset(): void { 118 118 this.#isActive = false; 119 - this.#exitCode = undefined; 119 + this.#exitCode = 0; 120 120 121 121 if (this.#intervalId) { 122 122 clearInterval(this.#intervalId); ··· 127 127 } 128 128 129 129 #onInterval(): void { 130 + this.render(); 131 + 130 132 this.#frameIndex = this.#frameIndex + 1 < this.#frames.length ? this.#frameIndex + 1 : 0; 131 133 // indicator increase by 1 every 8 frames 132 134 this.#indicatorTimer = this.#indicatorTimer < 4 ? this.#indicatorTimer + 0.125 : 0; 133 - 134 - this.render(); 135 135 } 136 136 137 137 #onProcessError: () => void = () => {
+1 -1
packages/prompts/src/spinner.ts
··· 57 57 const hasGuide = opts.withGuide ?? settings.withGuide; 58 58 59 59 if (!this.isActive) { 60 - if (this.silentExit) { 60 + if (this.silentExit || this.state === 'initial') { 61 61 return ''; 62 62 } 63 63 const step =