From c39cf15a55da827e740a2642b035202a9c080939 Mon Sep 17 00:00:00 2001 From: Nathaniel Eliot Date: Sat, 17 Jan 2026 12:50:06 -0600 Subject: [PATCH] fix: add include option when retrieving agents for memory blocks (#574) --- src/cli/components/MemoryTabViewer.tsx | 4 +++- src/cli/profile-selection.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cli/components/MemoryTabViewer.tsx b/src/cli/components/MemoryTabViewer.tsx index 07018e9..77ff697 100644 --- a/src/cli/components/MemoryTabViewer.tsx +++ b/src/cli/components/MemoryTabViewer.tsx @@ -49,7 +49,9 @@ export function MemoryTabViewer({ const fetchBlocks = async () => { try { const client = await getClient(); - const agent = await client.agents.retrieve(agentId); + const agent = await client.agents.retrieve(agentId, { + include: ["agent.blocks"], + }); setFreshBlocks(agent.memory?.blocks || []); } catch (error) { console.error("Failed to fetch memory blocks:", error); diff --git a/src/cli/profile-selection.tsx b/src/cli/profile-selection.tsx index fe96008..8b9d622 100644 --- a/src/cli/profile-selection.tsx +++ b/src/cli/profile-selection.tsx @@ -120,7 +120,9 @@ function ProfileSelectionUI({ const fetchedOptions = await Promise.all( optionsToFetch.map(async (opt) => { try { - const agent = await client.agents.retrieve(opt.agentId); + const agent = await client.agents.retrieve(opt.agentId, { + include: ["agent.blocks"], + }); return { ...opt, agent }; } catch { return { ...opt, agent: null };