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 <noreply@anthropic.com>
This commit is contained in:
Tarun Sukhani
2026-02-16 00:41:44 +08:00
parent c33a0f21cc
commit 8d88f2f8de

View File

@@ -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,