fix(tui): slash command double-run and --gui repo detection#23
Merged
Merged
Conversation
Remove bash blocks from /ccrewind and /ccrewind-ui slash commands so Claude Code does not auto-execute them alongside the skill, preventing the report from running twice. Fix --gui repo detection to check for src/app directory in addition to package.json, so the npx cache is not mistaken for a valid repo clone. Also check devDependencies for next, not just dependencies.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Two bugs fixed in
scripts/ccrewind-tui.ts.1.
/ccrewindand/ccrewind-uiran twiceSlash command markdown files had inline bash blocks. Claude Code auto-executes those blocks and captures output in
<local-command-stdout>(hidden, collapsed). The Superpowers skill then also ran the command via Bashtool (visible in conversation). Result: two executions, one hidden.
Fix: removed the bash blocks from both generated slash command files. The skill handles the single visible run.
2.
--guifailed with "Couldn't find any pages or app directory"When installed via
npx ccrewind --setup, theconfig.jsonwas written pointing to the npx cache directory (~/.npm/_npx/.../node_modules/ccrewind). That directory has a validpackage.jsonwithnextindevDependencies, so the repo check passed — but the npx package has nosrc/app/, causing Next.js to fail.Two root causes fixed:
src/app/exists on diskisValidRepoRoot()now checkdevDependencies.next, not justdependencies.next(next has always been a devDep in this repo)Test