mirror of
https://github.com/instructkr/claw-code.git
synced 2026-06-05 22:17:10 +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:
File diff suppressed because one or more lines are too long
@@ -2350,7 +2350,8 @@ fn parse_single_word_command_alias(
|
|||||||
return Some(Ok(CliAction::Help { output_format }));
|
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;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user