fix: remove redundant import in _switch_project (mcp_client already imported at top)

This commit is contained in:
2026-05-10 21:11:13 -04:00
parent 3987696d7b
commit 4bb94ff909
3 changed files with 43 additions and 29 deletions
-1
View File
@@ -2347,7 +2347,6 @@ class AppController:
self.ai_status = f"failed to load project: {e}"
return
self._refresh_from_project()
import mcp_client
file_items_as_dicts = [{"path": f.path if hasattr(f, "path") else str(f)} for f in self.files]
mcp_client.configure(file_items_as_dicts, [str(new_root)])
self.ai_status = f"switched to: {Path(path).stem}"