mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Resolving the working directory encoded in a Cursor project name could recursively scan large directory trees. ## What changed - Probe a bounded set of path candidates using common filename separators instead of walking the directory tree. - Stop after 128 probes and reject ambiguous matches or unsafe encoded components. - Parse Windows drive prefixes separately from the encoded path. ## Testing Added coverage for common separators, ambiguous leaf and ancestor paths, and Windows drive prefixes. GitOrigin-RevId: 34b2a2bbe2d302fac3d2614a5e36dd3fa20cf2e5