docs: update freeze skill to resolve symlinks when saving boundary

Change pwd to pwd -P when saving the freeze directory, ensuring that if
a user provides a symlink path (e.g., /home/user/project_link), it gets
stored as the canonical real path. This prevents the hook from silently
blocking edits when the file is accessed via the symlink.

Aligns the skill's path resolution with the improved hook behavior.
This commit is contained in:
Kaustav Mishra 2026-04-03 18:57:55 +05:30
parent cebe26b2b9
commit d23b219444
2 changed files with 4 additions and 4 deletions

View File

@ -46,9 +46,9 @@ Ask the user which directory to restrict edits to. Use AskUserQuestion:
Once the user provides a directory path:
1. Resolve it to an absolute path:
1. Resolve it to an absolute path (including symlinks):
```bash
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd -P)
echo "$FREEZE_DIR"
```

View File

@ -45,9 +45,9 @@ Ask the user which directory to restrict edits to. Use AskUserQuestion:
Once the user provides a directory path:
1. Resolve it to an absolute path:
1. Resolve it to an absolute path (including symlinks):
```bash
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd)
FREEZE_DIR=$(cd "<user-provided-path>" 2>/dev/null && pwd -P)
echo "$FREEZE_DIR"
```