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 08fc38f51b
commit c956e46751

View File

@@ -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(),
); );