fix(gateway): guard trim crashes in subagent flow

This commit is contained in:
Peter Steinberger
2026-02-22 13:20:53 +01:00
parent 52d1ece262
commit 1152b25866
4 changed files with 5 additions and 4 deletions

View File

@@ -502,7 +502,7 @@ function resolveRequesterStoreKey(
cfg: ReturnType<typeof loadConfig>,
requesterSessionKey: string,
): string {
const raw = requesterSessionKey.trim();
const raw = (requesterSessionKey ?? "").trim();
if (!raw) {
return raw;
}