mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-28 16:36:45 +00:00
fix(#735): classify_error_kind: /compact and other interactive-only slash commands now emit error_kind:interactive_only not unknown
This commit is contained in:
@@ -316,7 +316,11 @@ fn classify_error_kind(message: &str) -> &'static str {
|
||||
"unsupported_config_section"
|
||||
} else if message.contains("unknown_plugins_action") {
|
||||
"unknown_plugins_action"
|
||||
} else if message.contains("is a slash command") || message.starts_with("interactive_only:") {
|
||||
} else if message.contains("is a slash command")
|
||||
|| message.starts_with("interactive_only:")
|
||||
// #735: "slash command /X is interactive-only" emitted by interactive-only guard
|
||||
|| (message.starts_with("slash command") && message.contains("interactive-only"))
|
||||
{
|
||||
"interactive_only"
|
||||
} else {
|
||||
"unknown"
|
||||
|
||||
Reference in New Issue
Block a user