opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: file changes visibility in worktree subdirs (#4752)

Open dl-alexandre opened this issue 1 month ago • 1 comments

  • 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

dl-alexandre avatar Nov 27 '25 06:11 dl-alexandre