fix: widen parse_subcommand guard for multi-word commands

Changed rest.len() != 1 guard to rest.is_empty() so claw cost list,
claw model list, claw permissions show, etc. now reach the
bare_slash_command_guidance guard and emit typed slash-command
guidance instead of falling through to CliAction::Prompt.

Generated with https://github.com/Yeachan-Heo/gajae-code
Co-authored-by: Gajae Code <dev@gajae-code.com>
This commit is contained in:
bellman
2026-06-05 01:29:36 +09:00
parent f40927ba97
commit 9bc2f3631d
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2350,7 +2350,8 @@ fn parse_single_word_command_alias(
return Some(Ok(CliAction::Help { output_format }));
}
if rest.len() != 1 {
// #453: fire guard for multi-word commands too (claw cost list, claw model list, etc.)
if rest.is_empty() {
return None;
}