fix(mcp): configure mcp_client after files are loaded

_load_active_project() was calling _configure_mcp_for_project() BEFORE
_refresh_from_project() which populates self.files. Now it calls
_refresh_from_project() first so mcp_client gets configured with the
actual file list that includes gencpp paths.
This commit is contained in:
2026-05-10 23:09:15 -04:00
parent 6738e44e7a
commit 7ab58e4e00
+1
View File
@@ -1544,6 +1544,7 @@ class AppController:
self.active_project_path = fallback_path self.active_project_path = fallback_path
if fallback_path not in self.project_paths: if fallback_path not in self.project_paths:
self.project_paths.append(fallback_path) self.project_paths.append(fallback_path)
self._refresh_from_project()
self._configure_mcp_for_project() self._configure_mcp_for_project()
def _prune_old_logs(self) -> None: def _prune_old_logs(self) -> None: