fix: restore fast command registration

This commit is contained in:
Junebugg1214 2026-03-13 13:23:08 -04:00
parent 03bc084e46
commit c50b8e8c09
2 changed files with 15 additions and 0 deletions

View File

@ -196,6 +196,14 @@ function buildChatCommands(): ChatCommandDefinition[] {
acceptsArgs: true,
category: "status",
}),
defineChatCommand({
key: "fast",
description: "Show or change fast mode for this session.",
textAlias: "/fast",
acceptsArgs: true,
scope: "text",
category: "status",
}),
defineChatCommand({
key: "cortex",
description: "Inspect or override Cortex prompt mode for this conversation.",

View File

@ -199,6 +199,13 @@ describe("commands registry", () => {
]);
});
it("registers /fast as a text command", () => {
const fast = listChatCommands().find((command) => command.key === "fast");
expect(fast).toBeTruthy();
expect(fast?.scope).toBe("text");
expect(fast?.textAliases).toContain("/fast");
});
it("invalidates cached command lists after plugin registry updates", () => {
const before = listChatCommands();
expect(before.find((command) => command.key === "dock:msteams")).toBeFalsy();