From 7624fca044662d18dfa1d8645bc0c87f8e589643 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Tue, 17 Feb 2026 20:17:31 -0500 Subject: [PATCH] fix(sessions): accept partial entries in model resolver --- src/gateway/session-utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gateway/session-utils.ts b/src/gateway/session-utils.ts index ea48a028878..2615c4d18fd 100644 --- a/src/gateway/session-utils.ts +++ b/src/gateway/session-utils.ts @@ -644,7 +644,9 @@ export function getSessionDefaults(cfg: OpenClawConfig): GatewaySessionsDefaults export function resolveSessionModelRef( cfg: OpenClawConfig, - entry?: Pick, + entry?: + | SessionEntry + | Pick, agentId?: string, ): { provider: string; model: string } { const resolved = agentId