feat: simplify new agent intro message with /init tip (#288)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user