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

Open
opened 2026-02-16 18:12:13 -05:00 by yindo · 1 comment
Owner

Originally created by @remorses on GitHub (Feb 14, 2026).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @remorses on GitHub (Feb 14, 2026). Originally assigned to: @thdxr on GitHub. ### 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_
yindo added the bugperf labels 2026-02-16 18:12:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):

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

  • #13560: Sessions not appearing after SQLite migration - directly related to the migration mentioned in this issue
  • #13569: Session ordering issues post-migration - related to database-level problems
  • #7979: Slow OpenCode loading time - could be related to the extended startup time caused by migration
  • #7614: Slow startup performance - similar performance degradation symptoms

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

@github-actions[bot] commented on GitHub (Feb 14, 2026): This issue might be a duplicate of existing issues. Please check: - #13560: Sessions not appearing after SQLite migration - directly related to the migration mentioned in this issue - #13569: Session ordering issues post-migration - related to database-level problems - #7979: Slow OpenCode loading time - could be related to the extended startup time caused by migration - #7614: Slow startup performance - similar performance degradation symptoms Consider cross-linking or merging with #13560 if they're investigating the same migration issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9337