diff options
| author | Brendan Allan <[email protected]> | 2026-02-14 12:48:16 +0800 |
|---|---|---|
| committer | Brendan Allan <[email protected]> | 2026-02-14 12:48:16 +0800 |
| commit | 0b9e929f68f07652af85de70fa57f82760bc3331 (patch) | |
| tree | ea72463183a664a728cbd9f1e5be7cf6a50a77a1 /packages | |
| parent | d0dcffefa7c70ea180fd565a79d42d9db58977e4 (diff) | |
| download | opencode-0b9e929f68f07652af85de70fa57f82760bc3331.tar.gz opencode-0b9e929f68f07652af85de70fa57f82760bc3331.zip | |
desktop: fix rust
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/desktop/src-tauri/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index e587e8446..aa605a923 100644 --- a/packages/desktop/src-tauri/src/lib.rs +++ b/packages/desktop/src-tauri/src/lib.rs @@ -566,7 +566,8 @@ async fn initialize(app: AppHandle) { // come from any invocation of the sidecar CLI. The progress is captured by a stdout stream interceptor. // Then in the loading task, we wait for sqlite migration to complete before // starting our health check against the server, otherwise long migrations could result in a timeout. - let sqlite_done = !sqlite_file_exists().then(|| { + let needs_sqlite_migration = !sqlite_file_exists(); + let sqlite_done = needs_sqlite_migration.then(|| { tracing::info!( path = %opencode_db_path().expect("failed to get db path").display(), "Sqlite file not found, waiting for it to be generated" |
