mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 08:26:45 +00:00
fix(#738): interactive-only slash command error adds newline before hint; hint field now non-null with remediation text
This commit is contained in:
@@ -1513,7 +1513,8 @@ fn parse_direct_slash_cli_action(
|
||||
Ok(Some(command)) => Err({
|
||||
let _ = command;
|
||||
format!(
|
||||
"slash command {command_name} is interactive-only. Start `claw` and run it there, or use `claw --resume SESSION.jsonl {command_name}` / `claw --resume {latest} {command_name}` when the command is marked [resume] in /help.",
|
||||
// #738: newline before remediation so split_error_hint populates hint field
|
||||
"slash command {command_name} is interactive-only.\nStart `claw` and run it there, or use `claw --resume SESSION.jsonl {command_name}` / `claw --resume {latest} {command_name}` when the command is marked [resume] in /help.",
|
||||
command_name = rest[0],
|
||||
latest = LATEST_SESSION_REFERENCE,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user