fix(plugins): route plugin and marketplace aliases through local handler#2993
Merged
code-yeongyu merged 1 commit intomainfrom May 4, 2026
Merged
fix(plugins): route plugin and marketplace aliases through local handler#2993code-yeongyu merged 1 commit intomainfrom
code-yeongyu merged 1 commit intomainfrom
Conversation
claw plugin list / claw marketplace / claw marketplace list all fell through to the prompt/LLM path because parse_subcommand only matched "plugins" (the primary name) while the canonical spec aliases "plugin" and "marketplace" were unhandled. This manifested as auth errors and session creation on direct invocation — dogfood confirmed Gaebal's binary created one session via plugin prompt fallback. Fix: extend the plugins arm in parse_subcommand to also match "plugin" | "marketplace" so all three forms route to the same CliAction::Plugins without network calls or session creation. Verified: all six forms (bare + list subcommand for each name) return kind:plugin JSON, exit 0, and create zero sessions. Closes ROADMAP #55 partial (plugins/marketplace bypass complete).
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.
Problem
claw plugin listandclaw marketplace/claw marketplace listfell through to the prompt/LLM path, creating sessions and hitting auth errors. Onlyclaw plugins(the primary name) was wired inparse_subcommand.Root Cause
parse_subcommandmatched"plugins"but not"plugin"(singular) or"marketplace"(the canonical spec aliases fromSlashCommandSpec.aliases).Fix
Extend the
pluginsarm inparse_subcommandto also match"plugin" | "marketplace". All three forms now route toCliAction::Pluginswithout any network call or session creation.Verification
Tested all 6 invocation forms (bare + list subcommand for each alias):
Session delta: 0 across all invocations.
Closes partial ROADMAP #55 (plugins/marketplace bypass list gap).