fix(cli): remove unreachable return true in sync.ready

Drop a debug short-circuit shipped upstream in #23037 that flipped `sync.ready` before sync actually finished, producing a 1-2s delay before home content (agents, news, tips) appeared in the TUI. Bisected from origin/main.
This commit is contained in:
Alex Alecu
2026-04-24 09:43:41 +03:00
parent dd7b3c894f
commit 567ca0d341
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---
Fix a 1-2 second startup delay before home content (agents, news, tips) appears in the TUI.
@@ -630,7 +630,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
return store.status
},
get ready() {
return true
// kilocode_change - drop unreachable `return true` debug leftover from upstream #23037; caused the TUI to flip `ready` before sync finished, producing a 1-2s startup delay before home content (agents/news/tips) appears.
if (process.env.KILO_FAST_BOOT) return true
return store.status !== "loading"
},