[Bug] [sqlite] Sessions not appearing #9306

Open
opened 2026-02-16 18:12:08 -05:00 by yindo · 4 comments
Owner

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

Originally assigned to: @rekram1-node on GitHub.

Description

I downloaded the newest update with SQL migration and it seems like only around 15% of my sessions (only the oldest chats) are loaded and migrated (even after waiting for a while, on the newest release and experimental build earlier, there isn't anything hinting to further data being migrated)

same thing happens with TUI, I can only see a number of sessions, with the latest being from Feb 3.

I'm using OpenCode on a folder in Users/Downloads. Not connected with GItHub in any way.

Plugins

None

OpenCode version

1.2.0

Steps to reproduce

  1. Download the latest OpenCode version
  2. Launch it, you should see fewer sessions appearing.

Screenshot and/or share link

Version 1.2.0 TUI sessions:
Image

Version 1.2.0 Desktop sessions:
Image

Version 1.1.65 (pre-SQLite migration) showing significantly more sessions:
Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @Yuruzuu on GitHub (Feb 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I downloaded the newest update with SQL migration and it seems like only around 15% of my sessions (only the oldest chats) are loaded and migrated (even after waiting for a while, on the newest release and experimental build earlier, there isn't anything hinting to further data being migrated) same thing happens with TUI, I can only see a number of sessions, with the latest being from Feb 3. I'm using OpenCode on a folder in Users/Downloads. Not connected with GItHub in any way. ### Plugins None ### OpenCode version 1.2.0 ### Steps to reproduce 1. Download the latest OpenCode version 2. Launch it, you should see fewer sessions appearing. ### Screenshot and/or share link Version 1.2.0 TUI sessions: <img width="1332" height="893" alt="Image" src="https://github.com/user-attachments/assets/4d728a00-9a56-4b78-aed1-907ee69494d2" /> Version 1.2.0 Desktop sessions: <img width="3437" height="1366" alt="Image" src="https://github.com/user-attachments/assets/f28d1513-85cf-4c8f-b8bf-c96814fb02b9" /> Version 1.1.65 (pre-SQLite migration) showing significantly more sessions: <img width="3439" height="1369" alt="Image" src="https://github.com/user-attachments/assets/6f1c9584-2c99-4d0b-bda7-b46d3d8065cb" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:12:08 -05:00
Author
Owner

@thdxr commented on GitHub (Feb 14, 2026):

if you go to %APPDATA%/opencode and delete opencode.db and let it resync does more show up?

@thdxr commented on GitHub (Feb 14, 2026): if you go to %APPDATA%/opencode and delete opencode.db and let it resync does more show up?
Author
Owner

@thdxr commented on GitHub (Feb 14, 2026):

it's also possible because we switched to not showing sessions from child directories. if you open tui in child directory do more sessions show up?

@thdxr commented on GitHub (Feb 14, 2026): it's also possible because we switched to not showing sessions from child directories. if you open tui in child directory do more sessions show up?
Author
Owner

@thdxr commented on GitHub (Feb 14, 2026):

im going to roll that feature back for now

@thdxr commented on GitHub (Feb 14, 2026): im going to roll that feature back for now
Author
Owner

@Yuruzuu commented on GitHub (Feb 14, 2026):

if you go to %APPDATA%/opencode and delete opencode.db and let it resync does more show up?

hey sorry for the late reply but this fixed it, I deleted opencode.db, started OpenCode desktop, and it now shows all my latest sessions. Same for the TUI. thanks!

@Yuruzuu commented on GitHub (Feb 14, 2026): > if you go to %APPDATA%/opencode and delete opencode.db and let it resync does more show up? hey sorry for the late reply but this fixed it, I deleted opencode.db, started OpenCode desktop, and it now shows all my latest sessions. Same for the TUI. thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9306