anomalyco / anomalyco/opencode

[Bug] Desktop TUI: "Files changed" (last round) panel always empty on Windows, file/patch parts never persisted

Open
#42,298 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 13, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Environment

  • OpenCode Desktop 1.18.18 (reproduced on 1.16.2 too)
  • Windows 11
  • Workspace root C:\LiteWorkSpace is NOT a git repo (git repos live in subdirectories)

Symptom
The right-side panel has two sections: "Changes this round" and "Git changes". The Git section always renders correctly, but "Changes this round" has been empty forever, even after edit/write tools successfully modified files in the session.

Evidence
Querying opencode db (part table) shows:

  • tool parts are persisted normally (4622 rows, edit tool parts include filePath in input)
  • file parts: only 1 row ever (old session)
  • patch parts: only 7 rows, all from June 2026 in a different workspace
  • Recent edit calls (after upgrading to 1.18.18) still produce zero file/patch parts

Suspicion
Likely related to #41399 (session file tracking for the same panel): the workspace root not being a git repo may break the file/patch persistence path. Most users run OpenCode inside a git repo root, which would explain why this is not widely reported

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.