microsoft / microsoft/AI-Engineering-Coach

OpenCode sessions are not loaded from SQLite storage

Open
#238 0 comments 1 reaction 1 assignee View on GitHub

@san360 is already working on this.

Since Aug 21, 2026.

bug
Dominant language
TypeScript
Stars
4.2k
Forks
585
Avg merge
22h 5m
Merged PRs (30d)
16

Description

Description

Current OpenCode versions store session data in ~/.local/share/opencode/opencode.db. AI Engineering Coach searches the legacy JSON storage directories. As a result, it can report zero OpenCode sessions without an error.

Reported in PR #170. Related to #84.

Steps to Reproduce
  1. Use an OpenCode version that stores sessions in opencode.db.
  2. Create one or more OpenCode sessions.
  3. Open AI Engineering Coach.
  4. Load the session data.
  5. Observe that no OpenCode sessions appear.
Expected Behavior

The extension reads opencode.db in read-only mode and shows the OpenCode sessions, requests, token counts, and model information.

Legacy JSON storage must continue to work.

Extension Version

Not provided in PR #170.

VS Code Version

Not provided in PR #170.

Operating System

Not provided in PR #170.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.