Skip to content

Commit 9dd63aa

Browse files
committed
Fix progress indicator newlines in claude --green
Fix progress indicator output issues: - Clear line before writing new progress messages - Add newline after progress before command output with stdio inherit This ensures clean output formatting when running local checks and prerequisite checking in the --green workflow.
1 parent ee627cf commit 9dd63aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/claude.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ const log = {
7979
success: msg => console.log(`${colors.green('✓')} ${msg}`),
8080
step: msg => console.log(`\n${msg}`),
8181
substep: msg => console.log(` ${msg}`),
82-
progress: msg => process.stdout.write(` ∴ ${msg}`),
82+
progress: msg => {
83+
process.stdout.write('\r\x1b[K')
84+
process.stdout.write(` ∴ ${msg}`)
85+
},
8386
done: msg => {
8487
process.stdout.write('\r\x1b[K')
8588
console.log(` ${colors.green('✓')} ${msg}`)
@@ -2743,6 +2746,8 @@ async function runGreen(claudeCmd, options = {}) {
27432746
continue
27442747
}
27452748

2749+
// Add newline after progress indicator before command output
2750+
console.log('')
27462751
const result = await runCommandWithOutput(check.cmd, check.args, {
27472752
cwd: rootPath,
27482753
stdio: 'inherit',
@@ -3225,6 +3230,8 @@ Fix all CI failures now by making the necessary changes.`
32253230

32263231
// Run local checks again
32273232
log.progress('Running local checks after fixes')
3233+
// Add newline after progress indicator before command output
3234+
console.log('')
32283235
for (const check of localChecks) {
32293236
await runCommandWithOutput(check.cmd, check.args, {
32303237
cwd: rootPath,

0 commit comments

Comments
 (0)