mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 16:36:45 +00:00
fix(#760): agent_not_found and plugin_not_found envelopes now include hint field
This commit is contained in:
@@ -2468,6 +2468,8 @@ pub fn handle_agents_slash_command_json(args: Option<&str>, cwd: &Path) -> std::
|
||||
"requested": name,
|
||||
// #734: parity with skills show which always emits a message field
|
||||
"message": format!("agent '{}' not found", name),
|
||||
// #760: hint so callers know how to enumerate available agents
|
||||
"hint": "Run `claw agents list` to see available agents.",
|
||||
}));
|
||||
}
|
||||
Ok(render_agents_report_json_with_action(cwd, &matched, "show"))
|
||||
|
||||
@@ -6227,6 +6227,8 @@ impl LiveCli {
|
||||
"requested": name,
|
||||
// #734: parity with skills show which always emits a message field
|
||||
"message": format!("plugin '{}' not found", name),
|
||||
// #760: hint so callers know how to enumerate available plugins
|
||||
"hint": "Run `claw plugins list` to see available plugins.",
|
||||
});
|
||||
println!("{}", serde_json::to_string_pretty(&obj)?);
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user