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:
parent
f40927ba97
commit
9bc2f3631d
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue