Skip to content

Commit 0f07ce1

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 f349cbf commit 0f07ce1

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

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

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

0 commit comments

Comments
 (0)