mirror of
https://github.com/instructkr/claw-code.git
synced 2026-10-30 00:00:22 +08:00
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:
1 parent
f40927ba97
commit
9bc2f3631d
2 files changed
+3
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user