From a424b9700e271c7ace8f0954671bdee5903555a8 Mon Sep 17 00:00:00 2001 From: main Date: Fri, 20 Mar 2026 18:01:43 -0400 Subject: Refresh workers on same-path project rebinding --- crates/fidget-spinner-cli/src/mcp/host/process.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/fidget-spinner-cli/src/mcp/host/process.rs') diff --git a/crates/fidget-spinner-cli/src/mcp/host/process.rs b/crates/fidget-spinner-cli/src/mcp/host/process.rs index d4cbb4b..fdbd873 100644 --- a/crates/fidget-spinner-cli/src/mcp/host/process.rs +++ b/crates/fidget-spinner-cli/src/mcp/host/process.rs @@ -55,6 +55,11 @@ impl WorkerSupervisor { self.bound_project_root = Some(project_root); } + pub(super) fn refresh_binding(&mut self, project_root: PathBuf) { + self.kill_current_worker(); + self.bound_project_root = Some(project_root); + } + pub(super) fn execute( &mut self, request_id: HostRequestId, -- cgit v1.2.3