Skip to content

Commit 4b5d67d

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 9caaa97 commit 4b5d67d

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
@@ -2797,7 +2797,7 @@ Fix this issue now by making the necessary changes.`
27972797

27982798
const claudeProcess = spawn(claudeCmd, prepareClaudeArgs([], opts), {
27992799
cwd: rootPath,
2800-
stdio: ['pipe', 'pipe', 'pipe'],
2800+
stdio: ['pipe', 'inherit', 'inherit'],
28012801
})
28022802

28032803
claudeProcess.stdin.write(fixPrompt)
@@ -3213,10 +3213,10 @@ Fix all CI failures now by making the necessary changes.`
32133213
}, 10_000)
32143214

32153215
try {
3216-
// Use runClaude with non-interactive mode for proper handling
3216+
// Use runClaude with interactive mode so Claude can use tools to fix files
32173217
await runClaude(claudeCmd, fixPrompt, {
32183218
...opts,
3219-
interactive: false,
3219+
interactive: true,
32203220
cwd: rootPath,
32213221
timeout: fixTimeout,
32223222
})

0 commit comments

Comments
 (0)