Skip to content

Commit 6af9b01

Browse files
wthrbtnclaude
andcommitted
freshen(opencode-ci-harness): before v2.2.6 run waits for stdin to close, so an open pipe hangs it
Classification: version-drift (known failure for runner variants) Source: anomalyco/opencode#59287 (closed 2026-11-05, COMPLETED, by PR #61911, first tag v2.2.6): with a non-TTY stdin, run waited for stdin to close before creating a session even when the prompt was an argument; reproduced by the project on 2.1.4. packages/cli/src/run/run.ts at v2.2.6 reads stdin with a 1 s grace when a message argument is present. Before: isolation.md gave </dev/null only as a way to keep stdin out of the message After: the same row names the pre-2.2.6 hang it also prevents Co-Authored-By: Claude Fable 5.2 <[email protected]>
1 parent 899d3fd commit 6af9b01

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@
765765
"name": "opencode-ci-harness",
766766
"source": "./",
767767
"description": "Run opencode (v2) CLI as a headless, fully-isolated test harness against any OpenAI-, Responses- or Messages-compatible endpoint (local inference engine or remote API), or against any provider…",
768-
"version": "0.20261109.21",
768+
"version": "0.20261109.22",
769769
"author": {
770770
"name": "Jörgen"
771771
},

‎.claude/skills/opencode-ci-harness/references/isolation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ variant of the runner or checking that isolation held.
1616
| `OPENCODE_LOG_LEVEL=DEBUG` + `--print-logs` | | Server logs on stderr |
1717
| unset `OPENCODE_DB`, `OPENCODE_CONFIG`, `OPENCODE_CONFIG_DIR`, `OPENCODE_PASSWORD`, `OPENCODE_SERVER_PASSWORD` | | Caller overrides that bypass the scratch home. `OPENCODE_DB` moves the database (sessions and credentials) out of `XDG_DATA_HOME` |
1818
| `cd "$WORKDIR"` | | `run` takes its project root from `$PWD` |
19-
| `</dev/null` when the prompt is an argument | | `run` appends any non-TTY stdin to the message |
19+
| `</dev/null` when the prompt is an argument | | `run` appends any non-TTY stdin to the message. Before v2.2.6 it also waits for stdin to close before creating the session: an open pipe (`ssh` without `-n`, a spawned child's default stdio) hangs the run with no output |
2020

2121
## Config (`OPENCODE_CONFIG_CONTENT`)
2222

0 commit comments

Comments
 (0)