Skip to content

Commit b09c4fd

Browse files
committed
Fix claude --green to use interactive mode for tool execution
- Change auto-fix spawn to use inherited stdio for stdout/stderr - Change CI fix to use interactive mode instead of non-interactive - Allows Claude to actually use tools (Read, Edit, Write, etc.) to fix files - Previously Claude could only output text but not modify files
1 parent b903d63 commit b09c4fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/claude.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,7 @@ Fix this issue now by making the necessary changes.`
28252825

28262826
const claudeProcess = spawn(claudeCmd, prepareClaudeArgs([], opts), {
28272827
cwd: rootPath,
2828-
stdio: ['pipe', 'pipe', 'pipe'],
2828+
stdio: ['pipe', 'inherit', 'inherit'],
28292829
})
28302830

28312831
claudeProcess.stdin.write(fixPrompt)
@@ -3279,10 +3279,10 @@ Fix all CI failures now by making the necessary changes.`
32793279
}, 10_000)
32803280

32813281
try {
3282-
// Use runClaude with non-interactive mode for proper handling
3282+
// Use runClaude with interactive mode so Claude can use tools to fix files
32833283
await runClaude(claudeCmd, fixPrompt, {
32843284
...opts,
3285-
interactive: false,
3285+
interactive: true,
32863286
cwd: rootPath,
32873287
timeout: fixTimeout,
32883288
})

0 commit comments

Comments
 (0)