Skip to content

Session Diff Broken Since v1.16.x #34620

Closed as duplicate
Closed as duplicate

Description

@zlxdike

Description

The session change (session switching) feature works correctly in v1.15.11​ and v1.15.13, but stops working starting from v1.16.0.

The issue persists in v1.16.2​ and v1.17.11.

Affected Versions​
✅ Working: v1.15.11, v1.15.13
❌ Not working: v1.16.0, v1.16.2, v1.17.11

Plugins

No response

OpenCode version

v1.17.11

Steps to reproduce

rm ~/.local/share/opencode
bun add -g opencode-ai@1.15.13
mkdir ~/code
cd ~/code && git init 

Create a new opencode session. Ask the models to generate a hello world file in ~/code. Verify the git diffs: confirm that the previous changes and the current session changes are all tracked.

rm ~/.local/share/opencode
bun add -g opencode-ai@1.16.0 
mkdir ~/code
cd ~/code && git init 

Create a new opencode session. Ask the models to generate a hello world file in ~/code. Verify the git diffs: the previous changes can be tracked, but the session changes cannot be tracked

Screenshot and/or share link

No response

Operating System

debain12

Terminal

zsh

Activity

  1. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Jun 30, 2026
  2. github-actions commented on Jun 30, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now includes a clear description of the regression, affected versions, and concrete steps to reproduce. We appreciate the detail.

  3. marked ---DELETED--- #36459 as a duplicate of this issue on Jul 12, 2026
  4. juliolv commented on Aug 25, 2026

    @juliolv

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

    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.

  5. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    Closing as a duplicate of #30877, which tracks the session diff / "Modified Files" sidebar breaking since v1.16. 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