Fix path-detection bug in a Pi /code snippet extension (TypeScript)
Takeaway: I'd start by pointing straight at the file and the exact failing input rather than describing the symptom abstractly — that got us to the root cause (minSlashCount: 2) fast anyway.