import: fix the repo-scope checks on Windows

Commit

peyton-alt2h ago

Run against a Windows runner, two checks misbehaved:

  • The Cursor collision walk compared directory listings (long names) against a target spelled with 8.3 short names (RUNNER~1), so it found no collision and let the import through. The target is now resolved to its canonical spelling first.
  • The relative-cwd guard used filepath.IsAbs, which on Windows rejects drive-less rooted paths such as \work\repo. It now accepts any rooted path and still rejects relative and drive-relative ("C:foo") ones; a drive-less path never matches a drive-qualified repo root anyway.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M49FBCV9W99077P5VENGY509

Checkpoints

import: close the review gaps in repo-scoped discovery

Claude CodeOpus 5.5
View session
Checkpoint 1