Skip to content

Unrelated data files suppress first-launch onboarding #51323

Closed as not planned
Closed as not planned

Description

@sdivyanshu90

Description

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

  1. Call the desktop existing-state helper with one non-directory entry named unrelated.dat.
  2. Observe that it returns true.
  3. 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.

Operating System

All desktop platforms

Terminal

All

Activity

  1. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    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.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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