Skip to content

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

Description

@eytazy1hae

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

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