Skip to content

Opencode usage does not show the project name on the dashboard #6

Closed

Description

@Gideon-Nobbs7

Issue

Opencode events never shows a project on the dashboard. The Projects breakdown and Session lists show "(unknown)" for all
opencode usage because events are stored with project = NULL.

Root cause

The adapter reads the project from the message payload, but opencode stores the workspace directory on the linked session row instead so the adapter never gets workspace directory.

Status

I've fixed this on my end and read the project from the session with a version bump to force re-sync and verified it against a live
opencode.db where all events now show a project on the dashboard. If you'd like, I can open a PR with this fix.

Activity

  1. ephraimduncan commented on Aug 28, 2026

    @ephraimduncan
    Contributor

    Hi @Gideon-Nobbs7 — I picked this up and opened a fix: #7.

    The root cause was that sessions were attributed to whatever project the working directory happened to resolve to, instead of the session's own project directory. #7 derives attribution from the session directory itself, which is the stable source of truth you described.

    Ephraim's already added CI on the branch (all green); it'll merge once he signs off. If you get a chance to pull the branch and sanity-check against your repro, that confirmation would speed it up. Otherwise it should land and be in main shortly.

  2. Gideon-Nobbs7 commented on Sep 1, 2026

    @Gideon-Nobbs7
    Author

    Hi @ephraimduncan thank you very much for the fix. I look forward to seeing the changes soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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