feat: add --name/-n option to resume agent by name (#411)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-28 23:17:42 -08:00
committed by GitHub
parent b1343d92ae
commit 0104fe4b3b
2 changed files with 131 additions and 2 deletions

View File

@@ -5412,7 +5412,14 @@ Plan file path: ${planFilePath}`;
})}
</Text>
<Text dimColor>Resume this agent with:</Text>
<Text color={colors.link.url}>letta --agent {agentId}</Text>
<Text color={colors.link.url}>
{/* Show -n "name" if agent has name and is pinned, otherwise --agent */}
{agentName &&
(settingsManager.getLocalPinnedAgents().includes(agentId) ||
settingsManager.getGlobalPinnedAgents().includes(agentId))
? `letta -n "${agentName}"`
: `letta --agent ${agentId}`}
</Text>
</Box>
)}