Commit 3c5367d
committed
Fix claude --green subprocess stdin raw mode error
When claude --green spawns Claude Code as a subprocess to apply CI fixes,
it was using interactive mode with piped stdin. This caused Ink (Claude's
UI library) to fail when trying to use raw mode on the piped stdin.
Solution: Use --print flag to run Claude in non-interactive mode. This
avoids the raw mode requirement while still allowing Claude to use tools
to make file changes.
Changes:
- Replace runClaude(..., { interactive: true }) with direct call to
runCommandWithOutput using --print flag
- Add error logging for non-zero exit codes1 parent b09c4fd commit 3c5367d
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3279 | 3279 | | |
3280 | 3280 | | |
3281 | 3281 | | |
3282 | | - | |
3283 | | - | |
3284 | | - | |
3285 | | - | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
3286 | 3286 | | |
3287 | | - | |
| 3287 | + | |
| 3288 | + | |
3288 | 3289 | | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
3289 | 3296 | | |
3290 | 3297 | | |
3291 | 3298 | | |
| |||
0 commit comments