Removed compact command changes from elsewhere
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user