Skip to content

task tool fails with "no such column: replacement_seq" when plugin lags behind CLI #35403

Closed as not planned

Description

@Bmasele

Description

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

  1. Have an opencode DB where migration table has 38 rows but __drizzle_migrations only has 21
  2. Run any /task command
  3. Observe no such column: replacement_seq

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. tianhuil commented on Jul 17, 2026

    @tianhuil

    I've been getting the same issue when I try to go back in history or change models. I'm on OSX.

  3. blackwiz4rd commented on Jul 31, 2026

    @blackwiz4rd

    similar issue on opencode linux

  4. skorokithakis commented on Aug 30, 2026

    @skorokithakis

    Is there any workaround on this? OpenCode is completely broken for me right now.

  5. blackwiz4rd commented on Aug 30, 2026

    @blackwiz4rd

    Is there any workaround on this? OpenCode is completely broken for me right now.

    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.

  6. MdTanwer commented on Sep 15, 2026

    @MdTanwer

    @jlongster, could you please take a look at PR #49225 when you get a chance? Thanks!

  7. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions