Skip to content

TUI sidebar "Modified Files" section does not show session diffs #32852

Closed as duplicate

Description

@seryakov-max

Description

The sidebar's "Modified Files" section remains empty even after opencode modifies files during a session. Previously this worked correctly — the sidebar would show each changed file with the number of added and removed lines (e.g., +5 -2).
Files are confirmed to be modified on disk (git status shows the changes), but the TUI sidebar does not track or display them.
What I expect: After opencode edits a file, the sidebar should list the file under "Modified Files" with line change counts.
What actually happens: The "Modified Files" section never appears, even when multiple files are changed.

Plugins

Built-in plugins only

OpenCode version

1.17.7

Steps to reproduce

  1. Open opencode in a git repository (opencode)
  2. Ask opencode to modify a file (e.g., add a comment to README.md)
  3. Observe that the sidebar "Modified Files" section stays empty
  4. Verified files are actually modified on disk (git status shows changes)

Screenshot and/or share link

Image

Operating System

Windows 10, Ubuntu WSL 2

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jun 18, 2026

    @github-actions
    Contributor

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

    If your issue is the same, please add a reaction or comment on the existing issue rather than opening a new one.

  2. NicolasWebDev commented on Jun 25, 2026

    @NicolasWebDev

    Have the same issue on 1.17.10, using TUI.

  3. Johannuel commented on Aug 2, 2026

    @Johannuel

    Same issue here. Running opencode 1.18.11 on Linux (TUI). The sidebar "Modified Files" section stays empty after edits — no section rendered at all, even though the per-turn diffs show correctly in the chat and git status confirms the changes on disk. This is a regression since v1.16.0 and it's still unfixed. Any update on #37542 / #37613?

  4. madathefreeman-cmd commented on Aug 4, 2026

    @madathefreeman-cmd

    Same issue here,
    I'm using opencode 1.18.12 on a linux terminal.

    Exact same behaviour as @Johannuel

  5. juliolv commented on Aug 25, 2026

    @juliolv

    Duplicate of #30877 (TUI sidebar "Modified Files" hidden after the v1.16 path-truncation change).

    PR #44796, which closes #30877 by restoring the session-level Session.diff and republishing the session.diff event, may also resolve this issue — but I am not 100% certain it covers every case reported here. Cross-referencing for tracking.

  6. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    Closing as a duplicate of #30877, which tracks the TUI sidebar "Modified Files" section not showing session diffs. That issue has an open fix PR. Please follow and 👍 there.

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