fix: harden slash command registry

This commit is contained in:
Peter Steinberger
2026-01-09 17:53:24 +01:00
parent 9c9f89e9be
commit cf1e0d743c
6 changed files with 112 additions and 18 deletions

View File

@@ -301,5 +301,11 @@ describe("buildCommandsMessage", () => {
it("lists commands with aliases and text-only hints", () => {
const text = buildCommandsMessage();
expect(text).toContain("/commands - List all slash commands.");
expect(text).toContain(
"/think (aliases: /thinking, /t) - Set thinking level.",
);
expect(text).toContain(
"/compact (text-only) - Compact the session context.",
);
});
});