mirror of https://github.com/garrytan/gstack.git
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:
parent
cebe26b2b9
commit
d23b219444
|
|
@ -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"
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue