mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user