Skip to content

DB migrating on every run when OPENCODE_CHANNEL is e.g. 'stable' (like the Nix package in nixpkgs) #21057

Closed as duplicate

Description

@bew

Description

Hello!

Here you can see the problem with my installed opencode (on NixOS):
Screenshot_20260405_014301
The migration is happening on every run.

Plugins

dcp

OpenCode version

1.3.13

Steps to reproduce

start opencode

Screenshot and/or share link

No response

Operating System

NixOS 25.11, but using opencode from unstable branch

Terminal

Wezterm

Activity

  1. added
    bugSomething isn't working
    on Apr 4, 2026
  2. bew commented on Apr 4, 2026

    @bew
    Author

    I've opened #21056 with the fix.

  3. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 4, 2026
  4. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

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

    • JSON->SQLite one-time migration reruns on channel-specific DBs #16885: JSON->SQLite one-time migration reruns on channel-specific DBs — describes the same root cause where the migration gate checks for opencode.db but channel-specific installs use a different DB filename (e.g., opencode-stable.db), causing the migration to re-run on every launch.
  5. bew commented on Apr 5, 2026

    @bew
    Author

    This is indeed a duplicate, closing

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)nix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions