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:
YeonGyu-Kim
2026-05-01 06:49:50 +09:00
parent 39bae88f3b
commit ae65619cd9

View File

@@ -3543,9 +3543,10 @@ fn run_resume_command(
})
}
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() {
Some("install") | Some("uninstall") | Some("enable") | Some("disable") => {
Some("install") | Some("uninstall") | Some("enable") | Some("disable")
| Some("update") => {
return Err(
"resumed /plugins mutations are interactive-only; start `claw` and run `/plugins` in the REPL".into(),
);