docs/opencode.md: the return to 1.x also removes the v2 plugin, and the failed download is described as it behaves

The rollback paragraph now says to take auto-continue-v2.js out of
~/.config/opencode/plugins when going back to 1.x (1.x does not run a
default-export plugin; the manually copied file would sit there dead),
and describes a failed crossing as it is since the OC_SERVE_MAJOR change:
the run keeps serving the OpenCode already installed and writes nothing
for the other major, with the exact re-run command. Blind review of
2026-11-20, D7 (and the doc side of D2/D3).

Tests: TheRollbackInOpencodeMdIsComplete in tests/test_docs_facts.py, two
tests that fail on the old doc, run as the CI runs them (python3
tests/test_docs_facts.py, cwd=repo).

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan Basbunar committed 2026-11-20 09:51:17 +01:00
1 parent 90b10aa47e
commit 81ffcc8a9e
2 files changed
+22 -1

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ install.
## OpenCode 2, opt-in
OpenCode 2 is not the default of anything: the box stays on the tested 1.19.6 until you ask. `./install.sh --opencode 2` (one-liner: `| bash -s -- --opencode 2`) installs the pinned 2.3.2 (GitHub's release asset, `OPENCODE2_VERSION` with its `OPENCODE2_SHA256`, refused without its checksum like 1.x), remembers the choice in `~/.config/qwen38/opencode.major`, and wires everything to it: the Agent unit, the `oc` launcher, the generated config. `./install.sh --opencode 1` goes back: it takes this repo's `permissions` array out of your global config (OpenCode 1.19 refuses to start while one holds it, measured against 1.19.5 on 2026-11-14; an array that is not the one this repo wrote is left alone and said, with the way back), erases the marker and installs the pinned 1.x again. A stray 2.x found on the PATH (Homebrew Core's formula is one) never opts a box in: the choice wins, and a run that cannot download serves neither major as the other.
OpenCode 2 is not the default of anything: the box stays on the tested 1.19.6 until you ask. `./install.sh --opencode 2` (one-liner: `| bash -s -- --opencode 2`) installs the pinned 2.3.2 (GitHub's release asset, `OPENCODE2_VERSION` with its `OPENCODE2_SHA256`, refused without its checksum like 1.x), remembers the choice in `~/.config/qwen38/opencode.major`, and wires everything to it: the Agent unit, the `oc` launcher, the generated config. `./install.sh --opencode 1` goes back: it takes this repo's `permissions` array out of your global config (OpenCode 1.19 refuses to start while one holds it, measured against 1.19.5 on 2026-11-14; an array that is not the one this repo wrote is left alone and said, with the way back), erases the marker and installs the pinned 1.x again. If you installed the v2 plugin by hand, take it out too: `rm -f ~/.config/opencode/plugins/auto-continue-v2.js` (1.x does not run a default-export plugin; the file would sit there dead). A stray 2.x found on the PATH (Homebrew Core's formula is one) never opts a box in: the choice wins, and a run whose download fails keeps serving the OpenCode already installed and writes nothing for the other major (no marker, no config key, no unit), so no mixed state is left behind; re-run `./install.sh --opencode <major>` once GitHub is reachable to install the pin.
What the 2.x server is, measured on 2.3.0 on this box (the binary, its answers and its bundle, 2026-11-14 and 15):