fix(#734): agents/plugins show not-found envelopes gain message field; parity with skills show

This commit is contained in:
YeonGyu-Kim
2026-05-26 13:34:36 +09:00
parent cc86f54d65
commit d4494a8aeb
3 changed files with 6 additions and 0 deletions

View File

@@ -2459,6 +2459,8 @@ pub fn handle_agents_slash_command_json(args: Option<&str>, cwd: &Path) -> std::
"status": "error",
"error_kind": "agent_not_found",
"requested": name,
// #734: parity with skills show which always emits a message field
"message": format!("agent '{}' not found", name),
}));
}
Ok(render_agents_report_json_with_action(cwd, &matched, "show"))

View File

@@ -6140,6 +6140,8 @@ impl LiveCli {
"status": "error",
"error_kind": "plugin_not_found",
"requested": name,
// #734: parity with skills show which always emits a message field
"message": format!("plugin '{}' not found", name),
});
println!("{}", serde_json::to_string_pretty(&obj)?);
return Ok(());