fix(client): raise project-open & directory-suggestion timeouts for large repos (#1620)

openProject 10s->60s and getDirectorySuggestions 10s->30s + debounce the
project-picker query 250ms. On large local repos the daemon's path-resolve and
home-tree scan take several seconds; firing per-keystroke against a 10s timeout
raced the suggestion list to empty (e.g. ~/gi found a hit but ~/gith blanked)
and surfaced a spurious 'Timeout waiting for message (10000ms)' on add.

Co-authored-by: jms830 <jms830@noreply.github.com>
This commit is contained in:
jms830
2026-06-26 21:11:05 +08:00
committed by GitHub
co-authored by jms830
parent daf7042cd2
commit 85322c5968
2 changed files with 17 additions and 4 deletions
+6 -2
View File
@@ -1886,7 +1886,9 @@ export class DaemonClient {
cwd,
},
responseType: "open_project_response",
timeout: 10000,
// Large local repos (e.g. a big monorepo/brain checkout) need >10s for the
// daemon to resolve the path, detect git, and materialize the workspace.
timeout: 60000,
});
}
@@ -3512,7 +3514,9 @@ export class DaemonClient {
limit: options.limit,
},
responseType: "directory_suggestions_response",
timeout: 10000,
// Home-tree scans on large home dirs can take several seconds; don't cut
// the suggestion request off early (it would surface as an empty list).
timeout: 30000,
});
}