Files
gemini-cli/packages/core
A.K.M. Adib ca0f0a85f5 fix: resolve symlinks for non-existent paths during validation
The path validation logic in Config.isPathAllowed failed when attempting
to write a new file to a directory that is a symbolic link. This happened
because fs.realpathSync fails on non-existent paths, falling back to an
unresolved path which then mismatches with the resolved project temporary
directory during the isSubpath check.

This commit updates resolveToRealPath to robustly resolve parent
directories even if the leaf file does not exist, and updates
isPathAllowed to use this improved helper.
2026-03-06 18:30:32 -05:00
..