ActivateProjectTool: Return instructions to read manual also if project is already activated

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-04-08 20:49:52 +02:00
1 parent b0fd895794
commit e35c09842f
1 file changed
+3 -2
+3 -2
View File
@@ -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