mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 11:31:23 +00:00
fix(gateway): guard trim crashes in subagent flow
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user