


























@@ -385,6 +385,7 @@ describe("telegram live qa runtime", () => {
385385"telegram-other-bot-command-gating",
386386"telegram-context-command",
387387"telegram-current-session-status-tool",
388+"telegram-tool-only-usage-footer",
388389"telegram-mentioned-message-reply",
389390"telegram-reply-chain-exact-marker",
390391"telegram-stream-final-single-message",
@@ -402,6 +403,7 @@ describe("telegram live qa runtime", () => {
402403"telegram-other-bot-command-gating",
403404"telegram-context-command",
404405"telegram-current-session-status-tool",
406+"telegram-tool-only-usage-footer",
405407"telegram-mentioned-message-reply",
406408"telegram-reply-chain-exact-marker",
407409"telegram-stream-final-single-message",
@@ -453,6 +455,15 @@ describe("telegram live qa runtime", () => {
453455":telegram:group:",
454456]);
455457expect(statusToolStep?.replyToLatestSutMessage).toBe(true);
458+const usageFooterSteps = requireScenario(scenarios, "telegram-tool-only-usage-footer").buildRun(
459+"sut_bot",
460+).steps;
461+expect(usageFooterSteps).toHaveLength(2);
462+expect(usageFooterSteps[0]?.input).toBe("/usage@sut_bot tokens");
463+expect(usageFooterSteps[0]?.expectedTextIncludes).toEqual(["Usage", "tokens"]);
464+expect(usageFooterSteps[1]?.expectedTextIncludes?.at(-1)).toBe("Usage:");
465+expect(usageFooterSteps[1]?.expectedSutMessageCount).toBe(2);
466+expect(usageFooterSteps[1]?.replyToLatestSutMessage).toBe(true);
456467expect(
457468scenarios
458469.find((scenario) => scenario.id === "telegram-mentioned-message-reply")
@@ -536,6 +547,9 @@ describe("telegram live qa runtime", () => {
536547expect(requireScenario(catalog, "telegram-current-session-status-tool").defaultEnabled).toBe(
537548false,
538549);
550+const usageFooter = requireScenario(catalog, "telegram-tool-only-usage-footer");
551+expect(usageFooter.defaultEnabled).toBe(false);
552+expect(usageFooter.regressionRefs).toEqual(["openclaw/openclaw#87392"]);
539553const streamSingle = requireScenario(catalog, "telegram-stream-final-single-message");
540554expect(streamSingle.defaultEnabled).toBe(false);
541555expect(streamSingle.regressionRefs).toEqual(["openclaw/openclaw#39905"]);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。