diff --git a/src/serena/tools/config_tools.py b/src/serena/tools/config_tools.py index 17ffe74b..2008012b 100644 --- a/src/serena/tools/config_tools.py +++ b/src/serena/tools/config_tools.py @@ -30,8 +30,9 @@ class ActivateProjectTool(Tool, ToolMarkerDoesNotRequireActiveProject): """ is_new_activation = self.agent.activate_project_from_path_or_name(project) if not is_new_activation: - return "Project was already active." - result = self.agent.get_project_activation_message() + result = "Project was already active." + else: + result = self.agent.get_project_activation_message() result += "\nIMPORTANT: If you have not yet read the 'Serena Instructions Manual', do it now before continuing!" return result