From 8d88f2f8de2db8737913308af5f08352b29b6930 Mon Sep 17 00:00:00 2001 From: Tarun Sukhani Date: Mon, 16 Feb 2026 00:41:44 +0800 Subject: [PATCH] fix: handle undefined agentId in sandbox registry listing resolveSandboxAgentId returns string | undefined but was passed directly to resolveConfiguredImage which expects string. Co-Authored-By: Claude Opus 4.6 --- src/agents/sandbox/manage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/sandbox/manage.ts b/src/agents/sandbox/manage.ts index f6988146e90..a45d5e4fde8 100644 --- a/src/agents/sandbox/manage.ts +++ b/src/agents/sandbox/manage.ts @@ -49,7 +49,7 @@ async function listSandboxRegistryItems< // ignore } } - const agentId = resolveSandboxAgentId(entry.sessionKey); + const agentId = resolveSandboxAgentId(entry.sessionKey) ?? ""; const configuredImage = params.resolveConfiguredImage(agentId); results.push({ ...entry,