mirror of
https://github.com/instructkr/claw-code.git
synced 2026-05-19 05:51:26 +08:00
fix: block /plugins update in resume mode, fix comment
Address REQUEST_CHANGES from OMX review: 1. Add 'update' to the blocked mutation actions in resume mode (previously only install/uninstall/enable/disable were blocked) 2. Fix comment: 'Only list is supported' instead of 'Only list/help' since /plugins help doesn't actually parse as a valid action
This commit is contained in:
@@ -3546,9 +3546,10 @@ fn run_resume_command(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
SlashCommand::Plugins { action, target } => {
|
SlashCommand::Plugins { action, target } => {
|
||||||
// Only list/help are supported in resume mode (no runtime to reload)
|
// Only list is supported in resume mode (no runtime to reload)
|
||||||
match action.as_deref() {
|
match action.as_deref() {
|
||||||
Some("install") | Some("uninstall") | Some("enable") | Some("disable") => {
|
Some("install") | Some("uninstall") | Some("enable") | Some("disable")
|
||||||
|
| Some("update") => {
|
||||||
return Err(
|
return Err(
|
||||||
"resumed /plugins mutations are interactive-only; start `claw` and run `/plugins` in the REPL".into(),
|
"resumed /plugins mutations are interactive-only; start `claw` and run `/plugins` in the REPL".into(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user