Repository navigation
fix(commands): make /custom-commands an alias of /commands - #2132
Merged
Merged
Conversation
/custom-commands was renamed to /commands long ago, but only "/custom-commands create <name>" kept working, because the create handler matched both names; anything else reported "Unknown command". Register it in the alias table like the other old names. This also lets the create subcommands move into /commands without losing the old spelling. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
nc-review could not produce a verdict this run (agent exit |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Member
Author
|
Pushed a fix for the one CI failure: 🤖 Generated with Claude Code |
This was referenced Nov 11, 2026
jay23606
added a commit
to jay23606/nanocoder
that referenced
this pull request
Nov 12, 2026
…ective#2132) * fix(commands): make /custom-commands an alias of /commands /custom-commands was renamed to /commands long ago, but only "/custom-commands create <name>" kept working, because the create handler matched both names; anything else reported "Unknown command". Register it in the alias table like the other old names. This also lets the create subcommands move into /commands without losing the old spelling. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * test(help): the /commands help page now lists its old name Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
A small user-visible fix that has to land before PR 5 of the command-dispatcher sequence (#2098 … #2128). It is kept separate from the refactor, as the phase 2 rules ask.
What was wrong
/custom-commandsis the old name of/commands. Only/custom-commands create <name>still worked, because the create handler inapp/utils/handlers/create-handler.tsmatched both names. Any other use, such as plain/custom-commandsor/custom-commands show x, reportedUnknown command.PR 5 moves the
createsubcommands into the/commandsmodule itself. Without this alias,/custom-commands createwould stop working.Fix
Add
{name: 'custom-commands', target: 'commands'}toCOMMAND_ALIASES./custom-commands …is now rewritten to/commands …like the other old names:/custom-commandslists your commands./help custom-commandsopens the/commandspage./custom-commandscompletes to itself in the slash menu.Tests
command-dispatcher.spec.ts:/custom-commandsrenders the same view as/commands, and/custom-commands create review-codestill scaffolds.nanocoder/commands/review-code.mdand starts the design prompt. It runs in a temp cwd.aliases.spec.ts:custom-commandsis in the list of old names that must still resolve.tsc --noEmitand biome. The dispatcher and aliases specs pass.🤖 Generated with Claude Code