docs(roadmap): add #454 — claw list/run/exec/ask fall through to prompt dispatch; suggest_similar_subcommand KNOWN_SUBCOMMANDS too narrow#3067
Open
Yeachan-Heo wants to merge 1 commit into
Conversation
…pt dispatch; suggest_similar_subcommand KNOWN_SUBCOMMANDS too narrow
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.
ROADMAP pinpoint #454 — typo-suggestion candidate list is too narrow
Dogfooded for the 2026-05-24 06:30 Clawhip pinpoint nudge (message 1507994083769974825).
The asymmetry
The
missing_credentialsenvelope proves"list"was sent to Claude as a user prompt.Code
rust/crates/rusty-claude-cli/src/main.rs:1324-1364:listhas Levenshtein ≥ 3 from every entry, prefix < 4 with every entry, and no substring overlap → returnsNone, typo arm at:983-994is skipped, falls through toCliAction::Prompt.lsonly works by coincidence ("skills".contains("ls")). Any refactor ofKNOWN_SUBCOMMANDScould silently regress that.Other natural CLI-discovery shapes that fall through
claw lsclaw listskills list/mcp list/agents listclaw run hellopromptclaw exec hellopromptclaw ask whatprompt/ REPLclaw modelsCliAction::Modelsonce #452 landsclaw providersclaw profilesclaw aliasesclaw logsclaw settingsWhy distinct from #78 / #145 / #452 / #453
claw pluginsas a single missingCliActionvariant.claw models*as a single missingCliActionvariant.gh,kubectl,ls,npm,pip,git,aws,openai apiwill reach for these spellings.Required fix shape (full detail in ROADMAP entry)
(a) Extend
KNOWN_SUBCOMMANDSto includelist,ls,models,providers,profiles,aliases,logs,settings,run,exec,ask,chat,auth,login,logoutwith explicitdid_you_meanmappings. (b) Replace Levenshtein/prefix/substring coincidence with explicit did-you-mean targets. (c) Structuredkind:"unknown_subcommand"JSON envelope withprompt_dispatch_blocked:true. (d) Regression coverage for every spelling in the table.Acceptance check (one-liner)
env -u ANTHROPIC_API_KEY -u ANTHROPIC_AUTH_TOKEN claw listshould NOT exit withmissing_credentials; it should exit withunknown subcommand: list. Did you mean skills list / mcp list / agents list?.—
[repo owner's gaebal-gajae (clawdbot) 🦞]