Skip to content

Commit 9ce2917

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 2c3092e commit 9ce2917

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
@@ -34,7 +34,10 @@ const log = {
3434
success: msg => console.log(`${colors.green('✓')} ${msg}`),
3535
step: msg => console.log(`\n${msg}`),
3636
substep: msg => console.log(` ${msg}`),
37-
progress: msg => process.stdout.write(` ∴ ${msg}`),
37+
progress: msg => {
38+
process.stdout.write('\r\x1b[K')
39+
process.stdout.write(` ∴ ${msg}`)
40+
},
3841
done: msg => {
3942
process.stdout.write('\r\x1b[K')
4043
console.log(` ${colors.green('✓')} ${msg}`)
@@ -2698,6 +2701,8 @@ async function runGreen(claudeCmd, options = {}) {
26982701
continue
26992702
}
27002703

2704+
// Add newline after progress indicator before command output
2705+
console.log('')
27012706
const result = await runCommandWithOutput(check.cmd, check.args, {
27022707
cwd: rootPath,
27032708
stdio: 'inherit',
@@ -3180,6 +3185,8 @@ Fix all CI failures now by making the necessary changes.`
31803185

31813186
// Run local checks again
31823187
log.progress('Running local checks after fixes')
3188+
// Add newline after progress indicator before command output
3189+
console.log('')
31833190
for (const check of localChecks) {
31843191
await runCommandWithOutput(check.cmd, check.args, {
31853192
cwd: rootPath,

0 commit comments

Comments
 (0)