Skip to content

Workspace name, icon etc. are not saved #14465

Closed as not planned
Closed as not planned

Description

@Uslingen

Description

Details, like name, icon or colour, for the workspace are not persisted between runs of OpenCode Desktop.

If I close the workspace and reopen it, all data appear to be restored, but if I completely close OpenCode Destop and relaunch it, all details are gone from the workspace.

Plugins

No response

OpenCode version

1.2.9

Steps to reproduce

  1. Open OpenCode Desktop
  2. Select any existing workspace or create a new one
  3. Select edit, enter a name, chose a colour etc. and click save
  4. Close OpenCode Desktop
  5. Relaunch OpenCode Desktop and the workspace details from step 3 are gone

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. Uslingen commented on Mar 7, 2026

    @Uslingen
    Author

    Still broken in 1.2.20

  2. clansty commented on Mar 23, 2026

    @clansty

    seems fixed in 1.3.0

  3. belkovTV commented on Apr 1, 2026

    @belkovTV

    I came here to say I've been having this issue on two seperate machines till this day. Both updates to latest version (v1.3.13)

  4. orium commented on Apr 17, 2026

    @orium

    I'm still having this issue in 1.4.7.

  5. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  6. Bl0ck154 commented on May 8, 2026

    @Bl0ck154

    Still reproducible on OpenCode Desktop 1.14.39 on Windows.

    This issue has been open for a while and is still affecting current desktop builds. The Edit dialog for workspace/project icon opens and allows selecting an image, but the icon is not reliably saved or shown after saving/restarting the app.

    Local storage shows that some workspace records do contain icon data like:

    workspace:project -> icon -> override -> data:image/...;base64,...

    under:

    C:\Users\<user>\AppData\Roaming\ai.opencode.desktop\opencode.workspace.*.dat

    So it looks like the image may be written for some workspace storage keys, but the desktop UI either reads a different workspace record, does not refresh the selected icon, or loses the association after restart.

    There are also multiple opencode.workspace.*.dat files for the same/similar workspace paths, which may be related.

    This is a pretty visible desktop UX bug and it would be good to get it fixed instead of letting it keep resurfacing across versions.

  7. Bl0ck154 commented on May 8, 2026

    @Bl0ck154

    I dug into this locally on OpenCode Desktop 1.14.40 on Windows and found a more specific root cause.

    The project edit dialog can persist/read the selected image through workspace project metadata (workspace:project -> value.icon.override). However, the sidebar project list does not consistently receive that value.

    In the renderer bundle, the sidebar project list builds project data through enrich(project). It only propagated childStore.icon / base2.icon?.override, but did not propagate childStore.projectMeta?.icon?.override. As a result:

    • The Edit dialog can show a saved icon.
    • The sidebar/project list can still show no image icon.
    • After restart, icons can appear inconsistent between Edit and the sidebar.

    The local patch that fixed it for me was to update enrich(project) so it also uses childStore.projectMeta?.icon?.override when building project.icon for the sidebar.

    I also patched the Edit dialog preview to read the persisted icon from workspace storage, because in some cases props.project.icon.override was missing even though the storage record existed.

    I published my local workaround/patcher here in case it helps reproduce or validate the fix:

    https://gist.github.com/Bl0ck154/fa7d0b8cc900e6924e4f420da6bcb6fb

    This is only a local app.asar monkey patcher, not a proper upstream fix, but it documents the exact behavior that made icons start working consistently for me.

  8. github-actions commented on Jul 9, 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.

  9. etlweather commented on Jul 9, 2026

    @etlweather

    It is still a problem sometimes. I am using the Windows UI version. Sometimes it works, sometimes it does not.

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