Commit 035417e
fix: wire max_turns input through to SDK in run.ts
The main entrypoint (src/entrypoints/run.ts) never passes maxTurns to
runClaude(), so the SDK always uses its default limit of 10 turns.
The base-action entrypoint already wires this correctly — run.ts was
just missing it.
- Add max_turns input to action.yml
- Pass INPUT_MAX_TURNS through the composite step env block
- Add maxTurns to the runClaude() call in run.ts
Fixes #1177
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0f1fe5e commit 035417e
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
268 | 272 | | |
269 | 273 | | |
270 | 274 | | |
| 275 | + | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
0 commit comments