What Changed#
DEFAULT_TIMEOUT_MS in apps/desktop/src/backendReadiness.ts from 10_000 to 30_000.
Why#
The 10-second timeout is too tight for many machines. The backend consistently needs 10–12s to start (Node.js init → SQLite → migrations → HTTP listen), so the desktop gives up before the backend is ready — sometimes by less than a second.
Log evidence (v0.0.17, macOS x64):
- Last successful start: 9.18s (0.82s under the limit)
- Every cold start after that: 10.5–12s → timeout
- Backend reaches Listening 0.35–2s after the desktop gives up
30s gives comfortable headroom without affecting fast machines — the readiness check still polls every 100ms and resolves immediately when the backend responds.
Fixes #1916
Checklist#
Note
Low Risk
Low risk: only adjusts a default timeout value for desktop backend readiness polling, with no logic or data-handling changes.
Overview
Increases the default backend readiness wait timeout in the desktop app from 10s to 30s, reducing startup failures on slower/cold machines while keeping the existing polling behavior unchanged.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e27383525a019bdd0ceaa9f6b610befa581001d1. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Increase backend readiness timeout from 10s to 30s in desktop app#
Raises DEFAULT_TIMEOUT_MS in backendReadiness.ts from 10,000ms to 30,000ms, giving the backend more time to become ready before timing out.
Macroscope summarized e273835.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
372a8bae-ab85-46ef-9c09-677cc86ac383You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share