feat: simplify new agent intro message with /init tip (#288)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-17 22:35:02 -08:00
committed by GitHub
parent f4dadefe79
commit 5635cb70e6
2 changed files with 11 additions and 21 deletions

View File

@@ -4185,19 +4185,17 @@ Plan file path: ${planFilePath}`;
? agentState?.name
? `Resumed **${agentState.name}**`
: "Resumed agent"
: "Created a new agent (use /pin to save, /pinned or /resume to switch)";
: "Creating a new agent (use /pin to save)";
const agentNameLine =
!continueSession && agentState?.name
? `→ Agent: ${agentState.name} (use /rename to rename)`
: "";
const statusLines = [
resumedMessage,
agentNameLine,
...hints,
agentUrl ? `${agentUrl}` : "",
].filter(Boolean);
const statusLines = continueSession
? [resumedMessage, ...hints, agentUrl ? `${agentUrl}` : ""].filter(
Boolean,
)
: [
resumedMessage,
agentUrl ? `${agentUrl}` : "",
"→ Tip: use /init to initialize your agent's memory system!",
].filter(Boolean);
buffersRef.current.byId.set(statusId, {
kind: "status",

View File

@@ -60,7 +60,7 @@ type LoadingState =
export function getAgentStatusHints(
continueSession: boolean,
agentState?: Letta.AgentState | null,
agentProvenance?: AgentProvenance | null,
_agentProvenance?: AgentProvenance | null,
): string[] {
const hints: string[] = [];
@@ -83,14 +83,6 @@ export function getAgentStatusHints(
return hints;
}
// For new agents, show initialized memory blocks
if (agentProvenance) {
const blockLabels = agentProvenance.blocks.map((b) => b.label);
if (blockLabels.length > 0) {
hints.push(`→ Initialized memory blocks: ${blockLabels.join(", ")}`);
}
}
return hints;
}