diff options
| author | main <main@swarm.moe> | 2026-03-20 18:01:43 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-20 18:01:43 -0400 |
| commit | a424b9700e271c7ace8f0954671bdee5903555a8 (patch) | |
| tree | 5e8fb2ce0a5da6623da8f2160333deb9e96768d1 /crates/fidget-spinner-cli/src/mcp/host/process.rs | |
| parent | 9d63844f3a28fde70b19500422f17379e99e588a (diff) | |
| download | fidget_spinner-a424b9700e271c7ace8f0954671bdee5903555a8.zip | |
Refresh workers on same-path project rebinding
Diffstat (limited to 'crates/fidget-spinner-cli/src/mcp/host/process.rs')
| -rw-r--r-- | crates/fidget-spinner-cli/src/mcp/host/process.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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, |