mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 16:36:45 +00:00
fix(#779): resumed /skills invocation returns interactive_only error_kind + non-null hint
This commit is contained in:
@@ -4512,9 +4512,12 @@ fn run_resume_command(
|
||||
}
|
||||
SlashCommand::Skills { args } => {
|
||||
if let SkillSlashDispatch::Invoke(_) = classify_skills_slash_command(args.as_deref()) {
|
||||
return Err(
|
||||
"resumed /skills invocations are interactive-only; start `claw` and run `/skills <skill>` in the REPL".into(),
|
||||
);
|
||||
// #779: use interactive_only: prefix + \n hint so #776 classify/split emits
|
||||
// error_kind:interactive_only + non-null hint instead of unknown+null.
|
||||
let skill_name = args.as_deref().unwrap_or("<skill>");
|
||||
return Err(format!(
|
||||
"interactive_only: /skills {skill_name} invocation requires a live session.\nStart `claw` and run `/skills {skill_name}` inside the REPL, or use `claw -p <prompt>` with skill context."
|
||||
).into());
|
||||
}
|
||||
let cwd = env::current_dir()?;
|
||||
Ok(ResumeCommandOutcome {
|
||||
|
||||
Reference in New Issue
Block a user