You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move realpath cache boundary from process-wide to caller-owned scopes to
prevent stale symlink/ancestor answers in security-sensitive containment
checks while maintaining performance.
Changes:
- Add hostPathCache to fs-paths.ts mount resolution
- Accept cache parameter in resolvePathViaExistingAncestorSync
- Create per-operation caches in plugin hooks and skills resolution
- Use scoped caches in sandbox host-path validation
- Fix boundary-path.ts export conflict (remove duplicate export)
- Add regression tests for stale symlink/junction detection
Performance: 55% reduction in lstat time on Windows (21,376ms vs 47,834ms baseline)
Fixes#85262
0 commit comments