aboutsummaryrefslogtreecommitdiff
path: root/src/app/api/worktrees/deferred.rs
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-22 18:43:12 +0200
committerGitHub <noreply@github.com>2026-09-22 19:43:12 +0300
commitdd33ddf28d693b2c64ed91f75656c61416ee2538 (patch)
tree229769fa9e2535b72dc39ba0f64593ef5fdc93a2 /src/app/api/worktrees/deferred.rs
parent1c6397b1cddb288099ed212a5979732698bd72c2 (diff)
fix: move worktree lookups async (#4492)
Diffstat (limited to 'src/app/api/worktrees/deferred.rs')
-rw-r--r--src/app/api/worktrees/deferred.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/api/worktrees/deferred.rs b/src/app/api/worktrees/deferred.rs
index 9adbd70c..0f5ed547 100644
--- a/src/app/api/worktrees/deferred.rs
+++ b/src/app/api/worktrees/deferred.rs
@@ -16,8 +16,14 @@ impl App {
&mut self,
request: Request,
respond_to: std::sync::mpsc::Sender<String>,
+ client_local: bool,
) -> bool {
match request.method {
+ crate::api::schema::Method::WorktreeList(_)
+ | crate::api::schema::Method::WorktreeOpen(_) => {
+ self.start_api_worktree_read(request, respond_to, client_local);
+ true
+ }
crate::api::schema::Method::WorktreeCreate(params) => {
self.start_api_worktree_create(request.id, params, respond_to);
true