Skip to content

Session history not visible in web UI after migrating opencode.db from Windows to WSL #29799

Closed as not planned

Description

@Laviesss

Description

After copying opencode.db from Windows to WSL and converting all Windows-style paths to WSL paths in the database, session history does not appear in the web UI. The sessions are confirmed present in the database with correct paths, but the web UI shows nothing.

Plugins

oh-my-openagent@latest, @slkiser/opencode-quota, openslimedit@latest, @tarquinen/opencode-dcp

OpenCode version

1.15.11

Steps to reproduce

  1. Use opencode on Windows and accumulate session history
  2. Copy opencode.db to WSL: cp /mnt/c/Users//.local/share/opencode/opencode.db ~/.local/share/opencode/
  3. Convert paths in the database:
    sqlite3 ~/.local/share/opencode/opencode.db "UPDATE session SET directory = REPLACE(directory, 'C:\Users<USER>', '/mnt/c/Users/');"
    sqlite3 ~/.local/share/opencode/opencode.db "UPDATE session SET directory = REPLACE(directory, '', '/');"
  4. Verify paths look correct - SELECT DISTINCT directory FROM session shows /mnt/c/... paths
  5. cd into a project that matches exactly e.g. /mnt/c/Users///Coding Projects/
  6. Run: opencode web --hostname 0.0.0.0
  7. Open web UI in browser
  8. Session history is empty despite sessions existing for that project in the db

Screenshot and/or share link

No response

Operating System

Windows 11 Pro with WSL2 (Ubuntu)

Terminal

Windows Terminal running WSL2 (Ubuntu)

Activity

  1. github-actions commented on May 28, 2026

    @github-actions
    Contributor

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

  2. assigned and unassigned on May 29, 2026
  3. Laviesss commented on Jun 5, 2026

    @Laviesss
    Author

    Sorry if I am a bit impatient but is this a bug or intentional or?

  4. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions