fix(auto-update-checker): defer npm registry check until first idle

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-18 14:12:37 +09:00
parent a03faaa278
commit 3d4299445e
3 changed files with 59 additions and 40 deletions
@@ -0,0 +1,4 @@
export function scheduleDeferredIdleCheck(runCheck: () => void): void {
const timeout = setTimeout(runCheck, 5000)
timeout.unref?.()
}