Skip to content

[BUG] SQLite Migration Ate My Sessions! 😱 (But Desktop Survived!) #13636

@abbabb123

Description

@abbabb123

Description

After upgrading to v1.2.0+, my CLI shows incomplete sessions while Desktop still sees the full history. It's like CLI is on a diet but Desktop is living its best life!

Steps to Reproduce

  1. Have many sessions from daily coding
  2. Upgrade to v1.2.0+ (SQLite migration happens)
  3. Open CLI - notice some sessions are MISSING
  4. Open Desktop - ALL sessions are there!

Evidence

Storage Sessions Messages
SQLite (CLI) ~1,350 ~45,000
storage/ (old flat files) 20 folders 1,456 files

The old storage folder still contains un-migrated data, but CLI only reads from SQLite.

Expected Behavior

ALL sessions should appear in CLI, not just the ones that survived the SQLite migration!

Actual Behavior

  • CLI only shows sessions that made it to SQLite
  • Desktop reads from the old storage like a time traveler
  • Some sessions exist in storage/ but NOT in SQLite
  • The migration gave up halfway through

Environment

  • OpenCode version: v1.2.1
  • OS: macOS

Workaround

Downgrading to v1.1.x restores access to all sessions.


PLZ FIX 🙏

The users who upgraded are crying. The sessions we can't see are crying harder.
Desktop is laughing. We are not.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions