Removed compact command changes from elsewhere

This commit is contained in:
Luke K (pr-0f3t)
2026-01-08 10:41:09 -05:00
parent 8445c9a5e8
commit 713eb898f6
3 changed files with 0 additions and 17 deletions

View File

@@ -17,7 +17,6 @@ describe("commands registry", () => {
const specs = listNativeCommandSpecs();
expect(specs.find((spec) => spec.name === "help")).toBeTruthy();
expect(specs.find((spec) => spec.name === "stop")).toBeTruthy();
expect(specs.find((spec) => spec.name === "compact")).toBeFalsy();
});
it("detects known text commands", () => {
@@ -26,8 +25,6 @@ describe("commands registry", () => {
expect(detection.exact.has("/commands")).toBe(true);
expect(detection.regex.test("/status")).toBe(true);
expect(detection.regex.test("/status:")).toBe(true);
expect(detection.regex.test("/compact")).toBe(true);
expect(detection.regex.test("/compact:")).toBe(true);
expect(detection.regex.test("/stop")).toBe(true);
expect(detection.regex.test("/send:")).toBe(true);
expect(detection.regex.test("try /status")).toBe(false);

View File

@@ -72,14 +72,6 @@ const CHAT_COMMANDS: ChatCommandDefinition[] = [
description: "Start a new session.",
textAliases: ["/new"],
},
{
key: "compact",
nativeName: "compact",
description: "Compact the current session context.",
textAliases: ["/compact"],
acceptsArgs: true,
supportsNative: false,
},
{
key: "think",
nativeName: "think",

View File

@@ -239,11 +239,5 @@ 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 current session context.",
);
});
});