fix: avoid tilde-in-assignment to silence Claude Code permission prompts (#993)

Thanks @byliu-labs. Replaces `VAR=~/path` with `VAR="$HOME/path"` in two source-of-truth locations (scripts/resolvers/browse.ts + gstack-upgrade/SKILL.md.tmpl) so Claude Code's sandbox stops asking for permission on every skill invocation.

Co-Authored-By: Boyu Liu <byliu-labs@users.noreply.github.com>
This commit is contained in:
Boyu Liu
2026-04-17 05:49:56 +08:00
committed by GitHub
parent 6a785c5729
commit 0cc830b65f
18 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ anti-bot stealth, and custom branding. You see every action in real time.
_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
B=""
[ -n "$_ROOT" ] && [ -x "$_ROOT/.claude/skills/gstack/browse/dist/browse" ] && B="$_ROOT/.claude/skills/gstack/browse/dist/browse"
[ -z "$B" ] && B=~/.claude/skills/gstack/browse/dist/browse
[ -z "$B" ] && B="$HOME/.claude/skills/gstack/browse/dist/browse"
if [ -x "$B" ]; then
echo "READY: $B"
else