fix: restore fast command registration
This commit is contained in:
parent
03bc084e46
commit
c50b8e8c09
@ -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.",
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user