fix(commands): wire /usage to status (#492) (thanks @lc0rp)

This commit is contained in:
Peter Steinberger
2026-01-09 17:10:53 +01:00
parent 08caf7b9fc
commit 68ad27e31c
6 changed files with 47 additions and 3 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 };