-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[BUG] TUI session_diff tracking not working on Windows - files remain empty #10716
Copy link
Copy link
Closed
Labels
Description
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" />Reactions are currently unavailable