feat(cli): add thinking indicator tip bar with memory tips (#1410)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Devansh Jain
2026-03-16 16:04:00 -07:00
committed by GitHub
parent aba5ecc62a
commit be41f9f5c7
3 changed files with 76 additions and 20 deletions

View File

@@ -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);
});
});