mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-10 18:14:50 +08:00
fix(cli): remove 'stats' from STUB_COMMANDS — it is implemented
/stats was accidentally listed in STUB_COMMANDS (both in the original list
and overlooked in 1e14d59). Since SlashCommand::Stats is fully implemented
with REPL and resume dispatch, it should not be intercepted as unimplemented.
/tokens and /cache alias to Stats and were already working correctly.
/stats now works again in all modes.
This commit is contained in:
@@ -7347,7 +7347,6 @@ const STUB_COMMANDS: &[&str] = &[
|
|||||||
"logout",
|
"logout",
|
||||||
"vim",
|
"vim",
|
||||||
"upgrade",
|
"upgrade",
|
||||||
"stats",
|
|
||||||
"share",
|
"share",
|
||||||
"feedback",
|
"feedback",
|
||||||
"files",
|
"files",
|
||||||
@@ -7385,6 +7384,7 @@ const STUB_COMMANDS: &[&str] = &[
|
|||||||
// Spec entries with no parse arm — produce circular "Did you mean" error
|
// Spec entries with no parse arm — produce circular "Did you mean" error
|
||||||
// without this guard. Adding here routes them to the proper unsupported
|
// without this guard. Adding here routes them to the proper unsupported
|
||||||
// message and excludes them from REPL completions / help.
|
// message and excludes them from REPL completions / help.
|
||||||
|
// NOTE: do NOT add "stats", "tokens", "cache" — they are implemented.
|
||||||
"allowed-tools",
|
"allowed-tools",
|
||||||
"bookmarks",
|
"bookmarks",
|
||||||
"workspace",
|
"workspace",
|
||||||
|
|||||||
Reference in New Issue
Block a user