mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 20:38:27 +00:00
fix(reply): prefer provider over surface for run channel fallback
This commit is contained in:
committed by
Peter Steinberger
parent
63734df3b0
commit
740bb77c8c
@@ -477,7 +477,10 @@ export async function runPreparedReply(
|
||||
sessionKey,
|
||||
messageProvider: resolveOriginMessageProvider({
|
||||
originatingChannel: ctx.OriginatingChannel ?? sessionCtx.OriginatingChannel,
|
||||
provider: ctx.Surface ?? ctx.Provider ?? sessionCtx.Provider,
|
||||
// Prefer Provider over Surface for fallback channel identity.
|
||||
// Surface can carry relayed metadata (for example "webchat") while Provider
|
||||
// still reflects the active channel that should own tool routing.
|
||||
provider: ctx.Provider ?? ctx.Surface ?? sessionCtx.Provider,
|
||||
}),
|
||||
agentAccountId: sessionCtx.AccountId,
|
||||
groupId: resolveGroupSessionKey(sessionCtx)?.id ?? undefined,
|
||||
|
||||
Reference in New Issue
Block a user