mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-04 06:24:48 +08:00
fix: handle new slash command variants in cli
This commit is contained in:
@@ -903,6 +903,8 @@ fn run_resume_command(
|
||||
| SlashCommand::Permissions { .. }
|
||||
| SlashCommand::Session { .. }
|
||||
| SlashCommand::Plugins { .. }
|
||||
| SlashCommand::Agents { .. }
|
||||
| SlashCommand::Skills { .. }
|
||||
| SlashCommand::Unknown(_) => Err("unsupported resumed slash command".into()),
|
||||
}
|
||||
}
|
||||
@@ -1197,6 +1199,14 @@ impl LiveCli {
|
||||
SlashCommand::Plugins { action, target } => {
|
||||
self.handle_plugins_command(action.as_deref(), target.as_deref())?
|
||||
}
|
||||
SlashCommand::Agents { .. } => {
|
||||
eprintln!("/agents is not fully wired yet");
|
||||
false
|
||||
}
|
||||
SlashCommand::Skills { .. } => {
|
||||
eprintln!("/skills is not fully wired yet");
|
||||
false
|
||||
}
|
||||
SlashCommand::Unknown(name) => {
|
||||
eprintln!("unknown slash command: /{name}");
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user