From 6ed2f81fe914ebfab7b5f8afabae7ad953f41ce1 Mon Sep 17 00:00:00 2001 From: "Christian M. Todie" Date: Sat, 25 Jul 2026 11:53:37 -0400 Subject: [PATCH 1/2] chore(harness-opencode): bump pin 1.18.3 -> 1.18.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes the investigation opened by the gateway-config repair (#49), where opencode failed with `SQLiteError: no such column: replacement_seq` and the cause was misdiagnosed twice before the evidence settled it. What actually happened, proven by installing 1.18.5 into an isolated prefix and letting it build a fresh database: 1.18.3 fresh DB -> 35 migrations, session_context_epoch has 7 columns (agent, replacement_seq, revision present) 1.18.5 fresh DB -> 38 migrations, session_context_epoch has 4 columns (20260622142730_simplify_session_context_epoch DROPS them) The user's database was 38 migrations / 4 columns — i.e. built by 1.18.5, which was published 2026-07-24, after the 1.18.3 pin (2026-07-16). So the local install had been ahead of the pin at some point and was later rolled back to it. The 1.18.3 binary then queried a column its own newer database no longer had. The binary was behind the DATABASE, not behind the pin — the reverse of the first diagnosis. 1.18.5 verified against the gateway both on a fresh database and on the existing one, and `moon check harness-opencode` is green. Pin updated in all four places the 3-way gate covers: install.sh, package.json (@opencode-ai/plugin), README.md, and the repo CLAUDE.md upstream-tracking line. Worth recording: the DB reset done during #49 was avoidable. Bumping to 1.18.5 would have fixed it without discarding the database, since 1.18.5 is what wrote it. The old file is retained at ~/.local/share/opencode/opencode.db.bak-2026-07-25-schema-mismatch. --- .claude/CLAUDE.md | 2 +- packages/harness-opencode/README.md | 2 +- packages/harness-opencode/install.sh | 2 +- packages/harness-opencode/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 9665c1b..e23705a 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -34,5 +34,5 @@ moon tag-node tasks; python: uv via tag-python. Shell: shellcheck (CI + lint). Harness pins are bumped deliberately (PR per bump, changelog reviewed) — this repo's value is *curated known-good*, not latest. Current: pi-coding-agent -0.80.10 · opencode-ai 1.18.3 · hermes-agent 0.18.0 · +0.80.10 · opencode-ai 1.18.5 · hermes-agent 0.18.0 · @oh-my-pi/pi-coding-agent 16.3.12 (bun). diff --git a/packages/harness-opencode/README.md b/packages/harness-opencode/README.md index 7d4cca2..7a0cdd7 100644 --- a/packages/harness-opencode/README.md +++ b/packages/harness-opencode/README.md @@ -6,7 +6,7 @@ consumes: local-models/README.md (endpoint wiring) # harness-opencode -[opencode](https://opencode.ai) at curated pin **`opencode-ai` 1.18.3**. +[opencode](https://opencode.ai) at curated pin **`opencode-ai` 1.18.5**. ```bash ./install.sh # npm install -g at the pin, config preset + plugins symlinked diff --git a/packages/harness-opencode/install.sh b/packages/harness-opencode/install.sh index 218be2b..da438d3 100755 --- a/packages/harness-opencode/install.sh +++ b/packages/harness-opencode/install.sh @@ -4,7 +4,7 @@ # install script; we deliberately use the npm path). set -euo pipefail -OPENCODE_VERSION="1.18.3" +OPENCODE_VERSION="1.18.5" PKG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" command -v npm >/dev/null 2>&1 || { echo "npm not found — run scripts/bootstrap.sh first (proto provides node)" >&2; exit 1; } diff --git a/packages/harness-opencode/package.json b/packages/harness-opencode/package.json index 38b492d..14d6053 100644 --- a/packages/harness-opencode/package.json +++ b/packages/harness-opencode/package.json @@ -9,7 +9,7 @@ "lint": "tsc --noEmit" }, "devDependencies": { - "@opencode-ai/plugin": "1.18.3", + "@opencode-ai/plugin": "1.18.5", "typescript": "7.0.2" } } From bf53865a4e9fcc6f69c08b75d322b1a2f5b03622 Mon Sep 17 00:00:00 2001 From: "Christian M. Todie" Date: Sat, 25 Jul 2026 11:54:06 -0400 Subject: [PATCH 2/2] chore(harness-opencode): update pnpm-lock for the 1.18.5 plugin bump --- pnpm-lock.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 445c89b..1af2514 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,8 +23,8 @@ importers: packages/harness-opencode: devDependencies: '@opencode-ai/plugin': - specifier: 1.18.3 - version: 1.18.3 + specifier: 1.18.5 + version: 1.18.5 typescript: specifier: 7.0.2 version: 7.0.2 @@ -335,12 +335,12 @@ packages: cpu: [x64] os: [win32] - '@opencode-ai/plugin@1.18.3': - resolution: {integrity: sha512-hAm/hZkSCsMSNHVy9DKmFtZAve/qYoIWpduNPcvXnnKK7NMlJEOQitA6CQC67Ym5DFKypDW1TC9YO6S1WdGtpg==} + '@opencode-ai/plugin@1.18.5': + resolution: {integrity: sha512-o1loQw5lh3zK7dgTN25Zh4tK+bW7BdszyDwdSumj0ahaR1lXWjYjVbAZuOQxeEQfkr266cqNi2x8UrrlkI0n7A==} peerDependencies: - '@opentui/core': '>=0.4.3' - '@opentui/keymap': '>=0.4.3' - '@opentui/solid': '>=0.4.3' + '@opentui/core': '>=0.4.5' + '@opentui/keymap': '>=0.4.5' + '@opentui/solid': '>=0.4.5' peerDependenciesMeta: '@opentui/core': optional: true @@ -349,8 +349,8 @@ packages: '@opentui/solid': optional: true - '@opencode-ai/sdk@1.18.3': - resolution: {integrity: sha512-Mevo4e6kQwbvto9E+42KSIVMhp+JBu+SwQhC5AomAvrV6Xkio3U249T+xDILDCXhl5Z/Hi/DlAuVLzpGnuh0gg==} + '@opencode-ai/sdk@1.18.5': + resolution: {integrity: sha512-7KgMvP5/1oxbhHj6kYBtPSTEdFKYpUeEYOzBTKdzSaRpapUpFFdn6Hkus3rr0rljO0kukWZIgRd3DrVBwTULGA==} '@opentelemetry/api@1.9.0': resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==} @@ -1306,14 +1306,14 @@ snapshots: '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.4': optional: true - '@opencode-ai/plugin@1.18.3': + '@opencode-ai/plugin@1.18.5': dependencies: '@ai-sdk/provider': 3.0.8 - '@opencode-ai/sdk': 1.18.3 + '@opencode-ai/sdk': 1.18.5 effect: 4.0.0-beta.83 zod: 4.1.8 - '@opencode-ai/sdk@1.18.3': + '@opencode-ai/sdk@1.18.5': dependencies: cross-spawn: 7.0.6