Merge pull request #586 from clawdbot/temp/landpr-492

fix(commands): wire /usage alias to /status
This commit is contained in:
Peter Steinberger
2026-01-09 16:14:11 +00:00
committed by GitHub
10 changed files with 34 additions and 5 deletions

View File

@@ -594,7 +594,8 @@ export async function handleCommands(params: {
const statusRequested =
directives.hasStatusDirective ||
command.commandBodyNormalized === "/status";
command.commandBodyNormalized === "/status" ||
command.commandBodyNormalized === "/usage";
if (allowTextCommands && statusRequested) {
const reply = await buildStatusReply({
cfg,

View File

@@ -170,7 +170,7 @@ export function extractStatusDirective(body?: string): {
hasDirective: boolean;
} {
if (!body) return { cleaned: "", hasDirective: false };
return extractSimpleDirective(body, ["status"]);
return extractSimpleDirective(body, ["status", "usage"]);
}
export type { ElevatedLevel, ReasoningLevel, ThinkLevel, VerboseLevel };