Skip to content

Project icon not displayed after saving for local projects (no project ID) — two bugs found with fix #36562

Closed as not planned

Description

@GoldenStiv-Fedora

Summary

When editing a local project (a project without an id in the opencode SQLite database), setting a custom icon via the project edit dialog does not work. The icon is never displayed in the home screen session list.

I've traced the issue to two bugs in the renderer code. Details and suggested fixes are in the attached file.

Root Cause (brief)

  1. dialog-edit-project calls project.meta() for projects without an ID, which writes icon data only to the workspace:project electron-store key. It does NOT call project.icon(), which writes to the workspace:icon key.
  2. enrich() in the project list pipeline reads icon from childStore.icon (workspace:icon), but never falls back to childStore.projectMeta.icon.override (workspace:project → icon → override).

Either fix alone resolves the symptom, but both should be applied.

Environment

  • opencode-desktop v1.17.18 (also reproduced on v1.17.9)
  • NixOS

Full analysis, exact code locations, and suggested patches are in the attached file.

bug-report.md

Activity

  1. github-actions commented on Jul 12, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review the above issues and add any new information there if relevant.

  2. github-actions commented on Sep 11, 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.

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