mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-19 00:00:00 +08: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:
1 parent
d4494a8aeb
commit
b3242e8c04
2 files changed
+7
-1
No files matched your search
@@ -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