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 committed 2026-06-05 01:29:36 +09:00
1 parent f40927ba97
commit 9bc2f3631d
2 files changed
+3 -2

No files matched your search

+2 -1
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;
}