From 5e381dc71f7a35b071f5eb47b70dba8169f4172e Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 5 Mar 2026 23:56:32 -0500 Subject: [PATCH] Agents: fix context registry typing --- src/agents/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/context.ts b/src/agents/context.ts index 4dd5e50289f..6b44d568f5c 100644 --- a/src/agents/context.ts +++ b/src/agents/context.ts @@ -12,8 +12,8 @@ import { ensureOpenClawModelsJson } from "./models-config.js"; type ModelEntry = { id: string; provider?: string; contextWindow?: number }; type ModelRegistryLike = { - getAvailable?: () => ModelEntry[]; - getAll: () => ModelEntry[]; + getAvailable?: () => Model[]; + getAll: () => Model[]; }; type ConfigModelEntry = { id?: string; contextWindow?: number }; type ProviderConfigEntry = { models?: ConfigModelEntry[] };