fix(hooks): swap execution order to create cache before checking

Ensure cache creation runs before cache warning check to prevent false

'Model Cache Not Found' warnings on first run.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-02-21 18:32:01 +09:00
parent 0b4ebc3538
commit f0204b0514

View File

@@ -42,8 +42,8 @@ export function createAutoUpdateCheckerHook(ctx: PluginInput, options: AutoUpdat
const displayVersion = localDevVersion ?? cachedVersion
await showConfigErrorsIfAny(ctx)
await showModelCacheWarningIfNeeded(ctx)
await updateAndShowConnectedProvidersCacheStatus(ctx)
await showModelCacheWarningIfNeeded(ctx)
if (localDevVersion) {
if (showStartupToast) {