fix: surface gateway slash commands in TUI

This commit is contained in:
Peter Steinberger
2026-01-23 18:58:41 +00:00
parent 1af227b619
commit 8195497cec
4 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { parseCommand } from "./commands.js";
import { getSlashCommands, parseCommand } from "./commands.js";
describe("tui slash commands", () => {
it("treats /elev as an alias for /elevated", () => {
@@ -13,4 +13,10 @@ describe("tui slash commands", () => {
args: "off",
});
});
it("includes gateway text commands", () => {
const commands = getSlashCommands({});
expect(commands.some((command) => command.name === "context")).toBe(true);
expect(commands.some((command) => command.name === "commands")).toBe(true);
});
});