mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:01:37 +00:00
fix: normalize session keys and outbound mirroring
This commit is contained in:
@@ -88,7 +88,7 @@ export function resolveGroupSessionKey(ctx: MsgContext): GroupKeyResolution | nu
|
||||
? parts.slice(2).join(":")
|
||||
: parts.slice(1).join(":")
|
||||
: from;
|
||||
const finalId = id.trim();
|
||||
const finalId = id.trim().toLowerCase();
|
||||
if (!finalId) return null;
|
||||
|
||||
return {
|
||||
|
||||
@@ -23,7 +23,7 @@ export function deriveSessionKey(scope: SessionScope, ctx: MsgContext) {
|
||||
*/
|
||||
export function resolveSessionKey(scope: SessionScope, ctx: MsgContext, mainKey?: string) {
|
||||
const explicit = ctx.SessionKey?.trim();
|
||||
if (explicit) return explicit;
|
||||
if (explicit) return explicit.toLowerCase();
|
||||
const raw = deriveSessionKey(scope, ctx);
|
||||
if (scope === "global") return raw;
|
||||
const canonicalMainKey = normalizeMainKey(mainKey);
|
||||
|
||||
Reference in New Issue
Block a user