Skip to content

Web: Workspace icon preview updates but Save does not persist icon (fallback initials remain) #26888

Description

@iradraconis

Description

Description

In OpenCode Web, workspace/project icon changes are not reliably persisted.

The icon preview in the edit dialog updates correctly, but after clicking Save, the sidebar still shows the fallback initial (for example Y) instead of the uploaded image.

This reproduces across multiple machines and with different images, so it does not appear to be a local cache or single-file problem.

Plugins

None

OpenCode version

v1.14.48)

Steps to reproduce

  1. Run opencode web and open the web UI.
  2. Open a workspace that currently shows fallback initials in the sidebar.
  3. Right-click workspace -> "Edit".
  4. Upload an icon image (PNG or JPG).
  5. Confirm the icon preview is visible in the dialog.
  6. Click "Save".
  7. Observe sidebar still shows fallback initials; icon is not applied.

Screenshot and/or share link

Screenshots are not helping here.

Operating System

Fedora Linux (reproduced on multiple machines, also Macos Apple Silicon)

Terminal

GNOME Terminal, Gostty


Additional technical findings

I inspected ~/.local/share/opencode/opencode.db:

  • affected session was linked to project_id = global instead of a dedicated project row for that workspace path.
  • manually creating a dedicated project row for the workspace worktree, setting icon_url_override, and remapping the session from global to the dedicated project made the sidebar icon appear correctly.

This suggests a project identity/mapping persistence issue (global vs dedicated project), not an image decoding/format issue.

Plugins

none

OpenCode version

1.14.48

Steps to reproduce

  1. Run opencode web and open the web UI.
  2. Open a workspace that currently shows fallback initials in the sidebar.
  3. Right-click workspace -> "Edit".
  4. Upload an icon image (PNG or JPG).
  5. Confirm the icon preview is visible in the dialog.
  6. Click "Save".
  7. Observe sidebar still shows fallback initials; icon is not applied.

Screenshot and/or share link

No response

Operating System

Fedora 44, Gnome

Terminal

GNOME-Terminal, also testet others

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