diff --git a/CHANGELOG.md b/CHANGELOG.md index 8210c025..5eea4313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,10 @@ erased, unit re-rendered, launcher rewritten, auto-continue plugin swapped, 1.x update without the flag keeps the box on 1.x; `--opencode 2` stays accepted and writes `2`. 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` -once GitHub is reachable to install the pin. +once GitHub is reachable to install the pin. On a major crossing the auto-continue file taken out of +`plugins/` is removed only when it is byte-for-byte the copy this repo delivers (`cmp -s` against +`extras/opencode`); one the operator edited is moved to `~/.config/opencode/.kept-AAAAMMJJ`, +outside the plugins dir so no major loads it, and the install's NOTE names the kept path. - **What the v2 wiring is.** the Agent unit serves `opencode v2.3.2` on 127.0.0.1 only; its health probe reads `GET /api/info` (every other path answers the app's HTML page, issue #55704); its diff --git a/docs/opencode.md b/docs/opencode.md index 35bb69fe..cf5fb272 100644 --- a/docs/opencode.md +++ b/docs/opencode.md @@ -125,7 +125,7 @@ install. ## OpenCode 2, the default since v1.56.0 -Since v1.56.0 (decision 1546, 2026-11-20, replacing the opt-in of 2026-10-22) OpenCode 2 is the default: a plain `./install.sh` (the one-liner included) installs the pinned 2.3.2 (GitHub's release asset, `OPENCODE2_VERSION` with its `OPENCODE2_SHA256`, refused without its checksum like 1.x), writes the marker `~/.config/qwen38/opencode.major` as `2`, and wires everything to it: the Agent unit, the `oc` launcher, the generated config. The first update of a box installed before v1.56.0 (no marker yet, serving 1.x) moves it to 2 the same way, properly: the generated config is rewritten in the v2 grammar and your global one gets the v2 keys merged in with everything of yours kept (nothing of yours is erased either way), the Agent unit is re-rendered for 2.x, the `oc` launcher rewritten, the auto-continue plugin swapped (`auto-continue-v2.js` in place of `auto-continue.js`, which 2.x does not run), and the 1.x sessions are migrated by 2.x's own first boot (`GET /api/experimental/migration/v1`, measured in a sandbox on 2026-11-20). The end of that install says it plainly: `opencode : moved to 2.3.2; to go back: ./install.sh --opencode 1`. `./install.sh --opencode 1` goes back to the pinned 1.19.6 and writes the marker `1`, so a later update without the flag keeps the box on 1.x: it also 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), takes the v2 compaction keys (`keep`, `background`) out of both configs, restores the v1 plugin `auto-continue.js` in place of `auto-continue-v2.js`, and installs the pinned 1.x again. `./install.sh --opencode 2` is still accepted and writes the marker `2`. 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` (or `--opencode `) once GitHub is reachable to install the pin. +Since v1.56.0 (decision 1546, 2026-11-20, replacing the opt-in of 2026-10-22) OpenCode 2 is the default: a plain `./install.sh` (the one-liner included) installs the pinned 2.3.2 (GitHub's release asset, `OPENCODE2_VERSION` with its `OPENCODE2_SHA256`, refused without its checksum like 1.x), writes the marker `~/.config/qwen38/opencode.major` as `2`, and wires everything to it: the Agent unit, the `oc` launcher, the generated config. The first update of a box installed before v1.56.0 (no marker yet, serving 1.x) moves it to 2 the same way, properly: the generated config is rewritten in the v2 grammar and your global one gets the v2 keys merged in with everything of yours kept (nothing of yours is erased either way), the Agent unit is re-rendered for 2.x, the `oc` launcher rewritten, the auto-continue plugin swapped (`auto-continue-v2.js` in place of `auto-continue.js`, which 2.x does not run), and the 1.x sessions are migrated by 2.x's own first boot (`GET /api/experimental/migration/v1`, measured in a sandbox on 2026-11-20). The end of that install says it plainly: `opencode : moved to 2.3.2; to go back: ./install.sh --opencode 1`. `./install.sh --opencode 1` goes back to the pinned 1.19.6 and writes the marker `1`, so a later update without the flag keeps the box on 1.x: it also 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), takes the v2 compaction keys (`keep`, `background`) out of both configs, restores the v1 plugin `auto-continue.js` in place of `auto-continue-v2.js`, and installs the pinned 1.x again. `./install.sh --opencode 2` is still accepted and writes the marker `2`. 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` (or `--opencode `) once GitHub is reachable to install the pin. A plugin file you edited is never erased on a crossing: the auto-continue copy taken out of `plugins/` is removed only when it is byte-for-byte the one this repo delivers, otherwise it is moved to `~/.config/opencode/.kept-AAAAMMJJ`, where no major loads it, and the install's NOTE names the kept path. 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):