Skip to content

[BUG] TUI session_diff tracking not working on Windows - files remain empty #10716

Closed

Description

@quanturbo

Description

Description

The TUI version's session_diff tracking isn't capturing file changes on Windows 11. All session_diff/*.json files remain [] despite successful file modifications via agents.

Environment

  • OpenCode version: 1.1.36
  • Platform: Windows 11
  • oh-my-opencode: 3.1.0
  • Shell: Git Bash/MSYS

Evidence

# Files created successfully
$ ls test.txt
-rw-r--r-- 1 bou-hp 5 Jan 26 18:43 test.txt

# But session_diff is empty
$ cat ~/.local/share/opencode/storage/session_diff/ses_40a39f933ffeoP8806D19v2ma5.json
[]

### Plugins

oh-my-opencode

### OpenCode version

1.1.36

### Reproduction
Start opencode in TUI mode on Windows
Ask agent to create/modify files
Check ~/.local/share/opencode/storage/session_diff/<session-id>.json
Result: File is [] instead of containing diffs
Expected
session_diff/*.json should contain file change records like:

[
  {
    "path": "test.txt",
    "type": "create",
    "content": "..."
  }
]

Review changes are always empty in cli and desktop, made git init, tried to reinstall opencode but nothing helps. <img width="733" height="892" alt="Image" src="https://github.com/user-attachments/assets/23e6dd4a-d09c-4115-b51b-eade87111a75" />

Activity

  1. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

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

    The most closely related is #10589, which describes a Windows-specific bug where git operations fail to track file changes in snapshots. Your session_diff tracking issue may be related to similar file tracking/state persistence problems on Windows.

    Feel free to ignore if none of these address your specific case.

  2. pschiel commented on Jan 28, 2026

    @pschiel
    Contributor

    possibly fixed in #6763 due to path mismatches in session/index.ts, project.ts, instance.ts, patch/index.ts or a combination of them

  3. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions