From 4ce0831934589d4645303db2f91ae6df4fbc5f5a Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Wed, 17 Dec 2025 14:40:15 -0800 Subject: [PATCH] fix: simplify startup memory block message (#263) Co-authored-by: Letta --- src/cli/App.tsx | 2 +- src/cli/components/WelcomeScreen.tsx | 43 +++------------------------- 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 4380661..ae1caeb 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -3820,8 +3820,8 @@ Plan file path: ${planFilePath}`; const statusLines = [ resumedMessage, agentNameLine, - agentUrl ? `→ ${agentUrl}` : "", ...hints, + agentUrl ? `→ ${agentUrl}` : "", ].filter(Boolean); buffersRef.current.byId.set(statusId, { diff --git a/src/cli/components/WelcomeScreen.tsx b/src/cli/components/WelcomeScreen.tsx index 712d757..1ea4afd 100644 --- a/src/cli/components/WelcomeScreen.tsx +++ b/src/cli/components/WelcomeScreen.tsx @@ -3,7 +3,6 @@ import type { Letta } from "@letta-ai/letta-client"; import { Box, Text } from "ink"; import type { AgentProvenance } from "../../agent/create"; -import { isProjectBlock } from "../../agent/memory"; import { settingsManager } from "../../settings-manager"; import { getVersion } from "../../version"; import { useTerminalWidth } from "../hooks/useTerminalWidth"; @@ -84,45 +83,11 @@ export function getAgentStatusHints( return hints; } - // For new agents with provenance, show block sources + // For new agents, show initialized memory blocks if (agentProvenance) { - // Blocks reused from existing storage - const reusedGlobalBlocks = agentProvenance.blocks - .filter((b) => b.source === "global") - .map((b) => b.label); - const reusedProjectBlocks = agentProvenance.blocks - .filter((b) => b.source === "project") - .map((b) => b.label); - - // New blocks - categorize by where they'll be stored - // (project blocks → .letta/, others → ~/.letta/) - const newBlocks = agentProvenance.blocks.filter((b) => b.source === "new"); - const newGlobalBlocks = newBlocks - .filter((b) => !isProjectBlock(b.label)) - .map((b) => b.label); - const newProjectBlocks = newBlocks - .filter((b) => isProjectBlock(b.label)) - .map((b) => b.label); - - if (reusedGlobalBlocks.length > 0) { - hints.push( - `→ Reusing from global (~/.letta/): ${reusedGlobalBlocks.join(", ")}`, - ); - } - if (newGlobalBlocks.length > 0) { - hints.push( - `→ Created in global (~/.letta/): ${newGlobalBlocks.join(", ")}`, - ); - } - if (reusedProjectBlocks.length > 0) { - hints.push( - `→ Reusing from project (.letta/): ${reusedProjectBlocks.join(", ")}`, - ); - } - if (newProjectBlocks.length > 0) { - hints.push( - `→ Created in project (.letta/): ${newProjectBlocks.join(", ")}`, - ); + const blockLabels = agentProvenance.blocks.map((b) => b.label); + if (blockLabels.length > 0) { + hints.push(`→ Initialized memory blocks: ${blockLabels.join(", ")}`); } }