feat(cli): add thinking indicator tip bar with memory tips (#1410)
Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { getRandomThinkingMessage } from "../../cli/helpers/thinkingMessages";
|
||||
import {
|
||||
getRandomThinkingMessage,
|
||||
getRandomThinkingTip,
|
||||
THINKING_TIPS,
|
||||
} from "../../cli/helpers/thinkingMessages";
|
||||
|
||||
describe("Thinking messages", () => {
|
||||
test("returns formatted message with agent name", () => {
|
||||
@@ -43,4 +47,11 @@ describe("Thinking messages", () => {
|
||||
// Should have more than 1 unique message (with high probability)
|
||||
expect(messages.size).toBeGreaterThan(1);
|
||||
});
|
||||
|
||||
test("returns a tip from the configured tip list", () => {
|
||||
const tip = getRandomThinkingTip();
|
||||
|
||||
expect(tip.length).toBeGreaterThan(0);
|
||||
expect((THINKING_TIPS as readonly string[]).includes(tip)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user