mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:48:27 +00:00
fix: surface gateway slash commands in TUI
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user