fix: remaining shell syntax in run() calls (closes #110)#124
Closed
TerminalGravity wants to merge 5 commits intomainfrom
Closed
fix: remaining shell syntax in run() calls (closes #110)#124TerminalGravity wants to merge 5 commits intomainfrom
TerminalGravity wants to merge 5 commits intomainfrom
Conversation
Covers LanceDB native binary failures, CLAUDE_PROJECT_DIR config, vector search not returning results, MCP handshake debugging, and performance tips. Links from README nav bar.
- examples/.preflight/config.yml: profile, related projects, thresholds, embeddings - examples/.preflight/triage.yml: strictness, always_check/skip/cross-service keywords - examples/.preflight/README.md: setup instructions and env var fallback reference - README.md: link to examples from Configuration Reference section
Add shell() helper to git.ts for commands needing pipes/redirects/||.
Fix run() calls that passed shell syntax or prefixed 'git' in strings:
- verify-completion: tsc, build, cat → shell(); git diff → array args
- token-audit: git diff → array args; wc -l → shell()
- clarify-intent: tsc pipe, find pipe → shell()
- session-handoff: command -v, gh pr list → shell()
- audit-workspace: git diff → array args; find pipe → shell()
- enrich-agent-task: git ls-files pipes, head → shell()
- sequence-tasks: git ls-files pipe → shell()
- scope-work: run('git status/diff') → run([...]) (removed 'git' prefix)
- sharpen-followup: run() with shell redirects → run([...]) array args
Fixes 3 remaining instances where run() (execFileSync, no shell) was called with shell syntax (pipes, redirects, non-git commands): - token-audit.ts: wc -c and tail -c calls now use shell() - scope-work.ts: git ls-files | head | grep pipeline now uses shell() These would silently fail since execFileSync passes shell operators as literal args to git. Closes #110
This was referenced Mar 6, 2026
Collaborator
Author
|
Superseded by #125 — same fixes plus the cleaner |
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.
Fixes the 3 remaining instances from #110 where
run()(which usesexecFileSync— no shell) was being called with shell syntax:wc -candtail -ccalls →shell()git ls-files | head | greppipeline →shell(), addedshellto importsThese would silently fail because
execFileSyncpasses shell operators (|,<,2>/dev/null) as literal arguments to git.Build passes clean. Closes #110.