mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-18 00:00:00 +08:00
fix(#697): agents unknown subcommand exits 1 with typed error; plugins remove aliases uninstall and errors on not-found
This commit is contained in:
1 parent
c613e8e676
commit
91a0681ae9
2 files changed
+13
-3
No files matched your search
@@ -294,6 +294,10 @@ fn classify_error_kind(message: &str) -> &'static str {
|
||||
"empty_prompt"
|
||||
} else if message.starts_with("interactive_only:") || message.contains("stdin is not a TTY") {
|
||||
"interactive_only"
|
||||
} else if message.starts_with("unknown agents subcommand:") {
|
||||
"unknown_agents_subcommand"
|
||||
} else if message.contains("is not installed") {
|
||||
"plugin_not_found"
|
||||
} else {
|
||||
"unknown"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user