[PR #4817] fix: file changes visibility in worktree subdirs (#4752) #11133

Open
opened 2026-02-16 18:15:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4817

State: open
Merged: No


  • Use Instance.worktree as cwd for all git operations in Snapshot
  • Calculate relative pathspec using fs.realpath to handle symlinks
  • Apply fix to track(), patch(), diff(), and diffFull()
  • Ensures git operations are scoped to opened directory
  • Fixes file changes not showing in sidebar for worktree subdirs
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4817 **State:** open **Merged:** No --- - Use Instance.worktree as cwd for all git operations in Snapshot - Calculate relative pathspec using fs.realpath to handle symlinks - Apply fix to track(), patch(), diff(), and diffFull() - Ensures git operations are scoped to opened directory - Fixes file changes not showing in sidebar for worktree subdirs
yindo added the pull-request label 2026-02-16 18:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11133