chore(harness-opencode): bump pin 1.18.3 → 1.18.5#51
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the investigation opened by #49, where opencode failed with
SQLiteError: no such column: replacement_seq.What actually happened
I misdiagnosed this twice. The evidence settled it — installing 1.18.5 into an isolated prefix and letting each version build a fresh database:
session_context_epochagent,replacement_seq,revisionpresent20260622142730_simplify_session_context_epochdrops themThe user's database was 38 migrations / 4 columns — built by 1.18.5, published 2026-07-24, after the 1.18.3 pin (2026-07-16). So the local install had been ahead of the pin 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 my first diagnosis, and the reason reinstalling 1.18.3 didn't help.
Verification
OKthrough the gateway on a fresh DB and on the existing one.moon check harness-opencodegreen (9 pass).install.sh,package.json(@opencode-ai/plugin),README.md, and the repoCLAUDE.mdupstream-tracking line.Honest note
The DB reset performed 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. Data lost was negligible (2 sessions, 2 messages) and the file is retained at
~/.local/share/opencode/opencode.db.bak-2026-07-25-schema-mismatch, but the reset was the wrong first move and I should have identified the version that produced the schema before touching data.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.