plugin: stop false provider cache warning

This commit is contained in:
YeonGyu-Kim
2026-04-10 13:43:58 +09:00
parent c173fa8f24
commit b60b2bcc3f
2 changed files with 92 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import type { OhMyOpenCodeConfig } from "../config"
import type { PluginContext } from "./types"
import { hasConnectedProvidersCache } from "../shared"
import { isModelCacheAvailable } from "../shared"
import { getAgentConfigKey } from "../shared/agent-display-names"
import { getSessionModel, setSessionModel } from "../shared/session-model-state"
import { getMainSessionID, setSessionAgent, subagentSessions } from "../features/claude-code-session-state"
@@ -210,7 +210,7 @@ export function createChatMessageHandler(args: {
await hooks.startWork["chat.message"]?.(input, output)
}
if (!hasConnectedProvidersCache()) {
if (!isModelCacheAvailable()) {
pluginContext.client.tui
.showToast({
body: {