diff --git a/openhands/utils/prompt.py b/openhands/utils/prompt.py index e66d610cdf73..93d9717a90ac 100644 --- a/openhands/utils/prompt.py +++ b/openhands/utils/prompt.py @@ -88,10 +88,9 @@ def get_system_message(self) -> str: ), f'Expecting at most one repo microagent, but found {len(self.repo_microagents)}: {self.repo_microagents.keys()}' for microagent in self.repo_microagents.values(): # We assume these are the repo instructions - if len(microagent.triggers) == 0: - if repo_instructions: - repo_instructions += '\n\n' - repo_instructions += microagent.content + if repo_instructions: + repo_instructions += '\n\n' + repo_instructions += microagent.content return self.system_template.render(repo_instructions=repo_instructions).strip() def get_example_user_message(self) -> str: