opencode
opencode copied to clipboard
fix: file changes visibility in worktree subdirs (#4752)
- 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