Skip to content

opencode should not run session JSON to sqlite migration when started with opencode serve #13611

Closed

Description

@remorses

Description

These commands are designed for programmatic usage. The migration should only run when the user can see the terminal and progress, programmatic usage expects opencode to start in a few seconds, the migration took more than 5 minutes in my case.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. run opencode serve
  2. migration triggers

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Feb 14, 2026
  2. github-actions commented on Feb 14, 2026

    @github-actions
    Contributor

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

    Consider cross-linking or merging with #13560 if they're investigating the same migration issue.

  3. github-actions commented on Apr 16, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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 workingperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions