Repository navigation
Conversation
Claude Code's bash safety heuristic fires a permission prompt on every browse/design command because tilde in variable assignments triggers "Tilde in assignment value" warnings. Change browseDir and designDir in buildHostPaths() to use $HOME instead of ~. Keep skillRoot and binDir with tilde since they appear in command substitution and prose contexts that don't trigger the heuristic. Fixes garrytan#785
2 of 4 tasks
3 tasks done
Contributor
|
@16francej Please close this PR. Home-directory path handling already shipped correctly through #993/current main. This branch edits stale generated skill files that would be overwritten during regeneration. |
Contributor
Author
|
Closing — home-directory path handling already shipped. Thanks @time-attack! |
0xDevNinja
added a commit
to 0xDevNinja/gstack
that referenced
this pull request
Jul 16, 2026
- The artifacts-sync preamble assigned `_BRAIN_SYNC_BIN="~/.claude/..."` and the telemetry block `-x`-tested the same path; tilde inside double quotes is literal, so 42+ SKILL.md files silently no-op'd brain-sync - `2>/dev/null || true` swallowed the ENOENT, so users never saw failure while cross-machine artifact handoff quietly never pushed - Normalize `ctx.paths.binDir` to `$HOME/...` form for env-var-host (Codex etc.) paths, untouched - Add static invariants `="~/` and `[ -x "~/` so the pattern can't regress under future resolver edits Fixes garrytan#1656. Same shape as garrytan#785 / garrytan#843, different surface (binDir, not browseDir/designDir).
|
Unsubscribe
…On Wed, Jul 15, 2026, 9:14 AM Matt Van Horn ***@***.***> wrote:
Closed #843 <#843>.
—
Reply to this email directly, view it on GitHub
<#843?email_source=notifications&email_token=BQ7R3F37FJFBTLGMX2DEBMD5E6UVRA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBQGI2TSNZUG43DBJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-28025974760>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BQ7R3F7VLHOKEQMHX6KGST35E6UVRAVCNFSNUABGKJSXA33TNF2G64TZHMYTCNZZGI3DIMRVHE5US43TOVSTWNBSGA4DONRUGQZTNILWAI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
browseDiranddesignDirinbuildHostPaths()(scripts/resolvers/types.ts:40-41) to use$HOMEinstead of~. Regenerates all 16 affected SKILL.md files.Problem
Claude Code's bash safety heuristic fires a permission prompt on every browse/design command:
This triggers on the generated pattern
B=~/.claude/skills/gstack/browse/dist/browsein every SKILL.md that uses the browser. Frequent interruptions during/browse,/qa,/design-review, and 14 other skills.Changes
One source change in
scripts/resolvers/types.ts:skillRootandbinDirstay with~because they appear in command substitution and prose contexts that don't trigger the heuristic.Testing
337/338 gen-skill-docs tests pass. The 1 failure is a pre-existing VERSION/package.json mismatch (#399), unrelated to this change. Verified:
B=~/orD=~/patterns remain in generated SKILL.md filesskillRootpaths still use~(test expectations at gen-skill-docs.test.ts:1742/1750 preserved)usesEnvVars: true, unaffected by this path)Fixes #785
This contribution was developed with AI assistance (Codex).