Files
codex/codex-rs
stefanstokic-oai 7287b4d4c1 Bound Cursor project path resolution (#37747)
## 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
2026-08-10 13:58:26 -07:00
..
2026-07-29 13:53:15 +00:00
2026-07-29 13:53:15 +00:00