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:
parent
0b4ebc3538
commit
f0204b0514
@ -42,8 +42,8 @@ export function createAutoUpdateCheckerHook(ctx: PluginInput, options: AutoUpdat
|
|||||||
const displayVersion = localDevVersion ?? cachedVersion
|
const displayVersion = localDevVersion ?? cachedVersion
|
||||||
|
|
||||||
await showConfigErrorsIfAny(ctx)
|
await showConfigErrorsIfAny(ctx)
|
||||||
await showModelCacheWarningIfNeeded(ctx)
|
|
||||||
await updateAndShowConnectedProvidersCacheStatus(ctx)
|
await updateAndShowConnectedProvidersCacheStatus(ctx)
|
||||||
|
await showModelCacheWarningIfNeeded(ctx)
|
||||||
|
|
||||||
if (localDevVersion) {
|
if (localDevVersion) {
|
||||||
if (showStartupToast) {
|
if (showStartupToast) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user