You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop beta stops showing sessions until UI state files are cleared #28477
When clearing UI state files fixes missing sessions, that usually means the source of truth and the view cache disagree about ownership or versioning.
I would look for a cache schema/version receipt on startup: discovered sessions, cached session index version, migration result, and why any entry was filtered. Otherwise users only learn that "deleting state works," not which persistence boundary actually broke.
CLI could still see all sessions, including sessions originally created in Desktop. Clearing only the Desktop UI/cache state restored visibility immediately:
CLI showed the same sessions from both paths, so core project/session storage seems to be resolving that correctly. That makes me think the main failure is in Desktop cache/state restoration or session-list indexing, not in the underlying session persistence itself.
So symlink vs realpath may still be a trigger, but it does not look like the root storage identity problem in my case.
That extra detail helps a lot because it narrows the fault line to Desktop cache/index restoration instead of core session storage. The next receipt I would want on startup is: discovered sessions from source, cache index entries loaded, canonical workspace identity chosen, and filter reason for every hidden entry. Once those four numbers exist, you can usually tell in one boot whether the problem is stale cache, path canonicalization, or a bad migration instead of asking users to delete state files blindly.
A desktop-state receipt here would be more useful than deeper speculation: cache/index path, expected version, actual version, whether rebuild was attempted, and what made the app trust or reject the local state. That gives people a clean triage branch before they start deleting files blindly.
Activity
github-actions commentedon May 20, 2026
This issue might be a duplicate of existing issues. Please check:
opencode.global.datindex, with the same workaround of clearing the.datfiles to restore sessionsopencode.global.datis out of sync with actual session storage, same root causeIf your issue is distinct from those (e.g., specific to a symlink vs. realpath triggering the desync), please add details clarifying the difference.
Keesan12 commentedon May 20, 2026
When clearing UI state files fixes missing sessions, that usually means the source of truth and the view cache disagree about ownership or versioning.
I would look for a cache schema/version receipt on startup: discovered sessions, cached session index version, migration result, and why any entry was filtered. Otherwise users only learn that "deleting state works," not which persistence boundary actually broke.
jurkech commentedon May 20, 2026
I can confirm this was not a storage failure.
CLI could still see all sessions, including sessions originally created in Desktop. Clearing only the Desktop UI/cache state restored visibility immediately:
~/.config/ai.opencode.desktop/opencode.global.dat~/.config/ai.opencode.desktop/opencode.workspace.*.datAfter removing those files and restarting Desktop, the session list reappeared.
I also checked the symlink angle more closely. My repo is available through both:
/home/roman/archive/work/tests/erm-playwright-tests/home/roman/work/tests/erm-playwright-testsCLI showed the same sessions from both paths, so core project/session storage seems to be resolving that correctly. That makes me think the main failure is in Desktop cache/state restoration or session-list indexing, not in the underlying session persistence itself.
So symlink vs realpath may still be a trigger, but it does not look like the root storage identity problem in my case.
Keesan12 commentedon May 21, 2026
That extra detail helps a lot because it narrows the fault line to Desktop cache/index restoration instead of core session storage. The next receipt I would want on startup is: discovered sessions from source, cache index entries loaded, canonical workspace identity chosen, and filter reason for every hidden entry. Once those four numbers exist, you can usually tell in one boot whether the problem is stale cache, path canonicalization, or a bad migration instead of asking users to delete state files blindly.
Keesan12 commentedon May 22, 2026
A desktop-state receipt here would be more useful than deeper speculation: cache/index path, expected version, actual version, whether rebuild was attempted, and what made the app trust or reject the local state. That gives people a clean triage branch before they start deleting files blindly.
github-actions commentedon Jul 22, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.