refactor(cli): move /system upgrade hint into thinking tips (#1411)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Devansh Jain
2026-03-16 16:23:05 -07:00
committed by GitHub
parent 77b6a3fc78
commit fea0c5ff07
4 changed files with 40 additions and 40 deletions

View File

@@ -2,6 +2,7 @@ import { describe, expect, test } from "bun:test";
import {
getRandomThinkingMessage,
getRandomThinkingTip,
SYSTEM_PROMPT_UPGRADE_TIP,
THINKING_TIPS,
} from "../../cli/helpers/thinkingMessages";
@@ -54,4 +55,12 @@ describe("Thinking messages", () => {
expect(tip.length).toBeGreaterThan(0);
expect((THINKING_TIPS as readonly string[]).includes(tip)).toBe(true);
});
test("can exclude /system upgrade tip from the selection pool", () => {
const tips = Array.from({ length: 50 }, () =>
getRandomThinkingTip({ includeSystemPromptUpgradeTip: false }),
);
expect(tips.every((tip) => tip !== SYSTEM_PROMPT_UPGRADE_TIP)).toBe(true);
});
});