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
Web: Workspace icon preview updates but Save does not persist icon (fallback initials remain) #26888
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
Run opencode web and open the web UI.
Open a workspace that currently shows fallback initials in the sidebar.
Right-click workspace -> "Edit".
Upload an icon image (PNG or JPG).
Confirm the icon preview is visible in the dialog.
Click "Save".
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
Run opencode web and open the web UI.
Open a workspace that currently shows fallback initials in the sidebar.
Right-click workspace -> "Edit".
Upload an icon image (PNG or JPG).
Confirm the icon preview is visible in the dialog.
Click "Save".
Observe sidebar still shows fallback initials; icon is not applied.
This issue might be a duplicate of existing issues. Please check:
Workspace name, icon etc. are not saved #14465: Workspace name, icon etc. are not saved — describes the same problem of workspace icon/name not persisting after save, with a very similar root cause around project identity persistence
Project icons not persisting after restart (non-git projects) #24774: Project icons not persisting after restart (non-git projects) — closed, but documents the same global project identity issue and icon persistence failure you've described, including the same workaround of manually creating a dedicated project row in the database
If your issue is distinct (e.g., specific to the web UI or the Save action within the session rather than across restarts), feel free to clarify the difference so maintainers can decide whether to track it separately.
Activity
github-actions commentedon May 11, 2026
This issue might be a duplicate of existing issues. Please check:
globalproject identity issue and icon persistence failure you've described, including the same workaround of manually creating a dedicated project row in the databaseIf your issue is distinct (e.g., specific to the web UI or the
Saveaction within the session rather than across restarts), feel free to clarify the difference so maintainers can decide whether to track it separately.etlweather commentedon May 30, 2026
Windows also, v1.15.12.
github-actions commentedon Jul 30, 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.