fix(#738): interactive-only slash command error adds newline before hint; hint field now non-null with remediation text

This commit is contained in:
YeonGyu-Kim
2026-05-26 16:06:38 +09:00
parent c592313d9a
commit 4c3cb0f347
2 changed files with 4 additions and 1 deletions

View File

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