Skip to content

fix(cli): fix slow CLI startup - #9455

Merged
alex-alecu merged 2 commits into
mainfrom
fix/cli-sync-ready-debug-leftover
Apr 24, 2026
Merged

fix(cli): fix slow CLI startup#9455
alex-alecu merged 2 commits into
mainfrom
fix/cli-sync-ready-debug-leftover

Conversation

@alex-alecu

@alex-alecu alex-alecu commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Drops a debug short-circuit accidentally shipped in upstream opencode #23037 that made sync.ready always true, leaving the rest of the getter unreachable.
  • Caused a visible 1-2s delay at TUI open before home content (agents, news, tips) appeared, since ready was flipping before sync actually finished and downstream consumers were racing it.

Bisected from origin/main (a915fe74be2 good → dd7b3c894fd bad) to 65b2a10e97d ("fade in prompt metadata transitions"). This PR undoes only the sync.tsx portion of that commit; the fade-in animation added in the same upstream commit is a separate issue tracked on the Kilo fork.

Testing

Compare bun dev on main vs fix/cli-sync-ready-debug-leftover.

Screen.Recording.2026-04-24.at.09.46.01.mov

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.
@alex-alecu alex-alecu changed the title fix(cli): remove unreachable return true in sync.ready fix(cli): fix slow CLI startup Apr 24, 2026
@kilo-code-bot

kilo-code-bot Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .changeset/cli-sync-ready-debug-leftover.md
  • packages/opencode/src/cli/cmd/tui/context/sync.tsx

Reviewed by gpt-5.4-20260305 · 90,624 tokens

@imanolmzd-svg
imanolmzd-svg self-requested a review April 24, 2026 06:57
Comment thread packages/opencode/src/cli/cmd/tui/context/sync.tsx
@alex-alecu
alex-alecu enabled auto-merge April 24, 2026 07:21
@alex-alecu
alex-alecu merged commit ccb02d8 into main Apr 24, 2026
16 checks passed
@alex-alecu
alex-alecu deleted the fix/cli-sync-ready-debug-leftover branch April 24, 2026 07:27
jliounis pushed a commit to jliounis/kilocode that referenced this pull request May 18, 2026
…ug-leftover

fix(cli): fix slow CLI startup
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…ug-leftover

fix(cli): fix slow CLI startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants