From 4eb8a2fa155b913e11c39feba0260698bbf5dbbd Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 8 Mar 2026 02:20:20 +0900 Subject: [PATCH] fix(plugin-state): track vision-capable multimodal models Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/plugin-state.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugin-state.ts b/src/plugin-state.ts index 5f20c0233..e4f3a0afa 100644 --- a/src/plugin-state.ts +++ b/src/plugin-state.ts @@ -1,11 +1,18 @@ +export type VisionCapableModel = { + providerID: string + modelID: string +} + export interface ModelCacheState { modelContextLimitsCache: Map; + visionCapableModelsCache?: Map; anthropicContext1MEnabled: boolean; } export function createModelCacheState(): ModelCacheState { return { modelContextLimitsCache: new Map(), + visionCapableModelsCache: new Map(), anthropicContext1MEnabled: false, }; }