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
Unrelated data files suppress first-launch onboarding #51323
Desktop install detection treats every file ending in .dat inside Electron's user-data directory as existing OpenCode state. An unrelated file such as unrelated.dat therefore marks a fresh installation as eligible for the old layout, which prevents first-launch default-project creation. Detection should recognize OpenCode's legacy default.dat and opencode.*.dat stores without accepting arbitrary data files.
Plugins
None
OpenCode version
1.18.32
Steps to reproduce
Call the desktop existing-state helper with one non-directory entry named unrelated.dat.
Observe that it returns true.
Use the same entries during first-launch initialization.
Expected: an unrelated data file does not identify an existing OpenCode installation.
Actual: the installation is marked as existing and first-launch project creation is skipped.
Screenshot and/or share link
Not applicable; the install-state helper call above reproduces the issue directly.
This issue might be a duplicate of existing issues. Please check:
#48553: Desktop first-launch splash remains visible while onboarding is pending.
#38222: Windows Desktop hangs indefinitely during first-launch onboarding.
The reported cause here (unrelated .dat files being treated as existing state) may be distinct, but these reports share the first-launch onboarding symptom.
Activity
github-actions commentedon Sep 25, 2026
This issue might be a duplicate of existing issues. Please check:
The reported cause here (unrelated
.datfiles being treated as existing state) may be distinct, but these reports share the first-launch onboarding symptom.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊