Commit de69ca3
committed
Handle Docker TTY flags in non-interactive runs
Only pass -i when stdin is a TTY and -t when stdout is a TTY.
This prevents `docker run` from failing with "the input device is not
a TTY" when the local runner is executed from non-interactive
environments (like the agent harness) while preserving interactive
behavior in regular terminals.1 parent 00f15ad commit de69ca3
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments