You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
task tool fails with "no such column: replacement_seq" when plugin lags behind CLI #35403
Running any sub-agent (general, explore, vision) crashes with no such column: replacement_seq. Root cause: the __drizzle_migrations table only tracks 21 migrations while the CLI has applied 38. Migrations 22-38 add columns (replacement_seq, revision) to 8 tables. When the CLI auto-updates past those migrations, existing databases still using the older plugin hit this error on every task dispatch.
Plugins
@opencode-ai/plugin v1.14.28
OpenCode version
CLI v1.17.9, plugin v1.14.28
Steps to reproduce
Have an opencode DB where migration table has 38 rows but __drizzle_migrations only has 21
Run any /task command
Observe no such column: replacement_seq
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Reacted by Arno Moonen, Michael Li, Stavros Korokithakis and Md Tanwir
Activity
github-actions commentedon Jul 5, 2026
This issue might be a duplicate of existing issues. Please check:
account_statetable after upgrade, same symptom pattern (schema column mismatch causing crash)tianhuil commentedon Jul 17, 2026
I've been getting the same issue when I try to go back in history or change models. I'm on OSX.
blackwiz4rd commentedon Jul 31, 2026
similar issue on opencode linux
skorokithakis commentedon Aug 30, 2026
Is there any workaround on this? OpenCode is completely broken for me right now.
blackwiz4rd commentedon Aug 30, 2026
I've had a similar issue, opencode worked around itself by modifying the internal DB and adding the column. Not ideal solution but it worked.
MdTanwer commentedon Sep 15, 2026
@jlongster, could you please take a look at PR #49225 when you get a chance? Thanks!
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊