run-plan: give opencode an empty stdin (1.15 hangs in the background otherwise)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -40,7 +40,9 @@ for task in "$plan"/[0-9][0-9]-*.md; do
|
||||
before=$(git rev-parse HEAD)
|
||||
echo "=== $milestone/$name: started $(date '+%H:%M:%S')"
|
||||
# shellcheck disable=SC2086
|
||||
if ! opencode run -m "$model" $flags --title "$milestone/$name" "$prompt" \
|
||||
# </dev/null: OpenCode 1.15 reads a piped stdin as extra prompt and waits for EOF, so a
|
||||
# backgrounded driver would hang before the first model request (2026-09-25).
|
||||
if ! opencode run -m "$model" $flags --title "$milestone/$name" "$prompt" </dev/null \
|
||||
> "$runs/$name.log" 2>&1; then
|
||||
echo "run-plan: opencode exited with an error in $name; see $runs/$name.log" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user