Skip to content

Commit 26e30d2

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 08093c7 commit 26e30d2

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

27532753
const claudeProcess = spawn(claudeCmd, prepareClaudeArgs([], opts), {
27542754
cwd: rootPath,
2755-
stdio: ['pipe', 'pipe', 'pipe'],
2755+
stdio: ['pipe', 'inherit', 'inherit'],
27562756
})
27572757

27582758
claudeProcess.stdin.write(fixPrompt)
@@ -3168,10 +3168,10 @@ Fix all CI failures now by making the necessary changes.`
31683168
}, 10_000)
31693169

31703170
try {
3171-
// Use runClaude with non-interactive mode for proper handling
3171+
// Use runClaude with interactive mode so Claude can use tools to fix files
31723172
await runClaude(claudeCmd, fixPrompt, {
31733173
...opts,
3174-
interactive: false,
3174+
interactive: true,
31753175
cwd: rootPath,
31763176
timeout: fixTimeout,
31773177
})

0 commit comments

Comments
 (0)