π OpenHands: AI-Driven Development
Fix for issue where initial command fails (#7254)
tofarre34a771e662d
diff --git a/openhands/agenthub/codeact_agent/prompts/additional_info.j2 b/openhands/agenthub/codeact_agent/prompts/additional_info.j2index 74f6e30e4e..df051256a8 100644--- a/openhands/agenthub/codeact_agent/prompts/additional_info.j2+++ b/openhands/agenthub/codeact_agent/prompts/additional_info.j2@@ -1,6 +1,6 @@{% if repository_info %}<REPOSITORY_INFO>-At the user's request, repository {{ repository_info.repo_name }} has been cloned to directory {{ repository_info.repo_directory }}.+At the user's request, repository {{ repository_info.repo_name }} has been cloned to the current working directory {{ repository_info.repo_directory }}.</REPOSITORY_INFO>{% endif %}{% if repository_instructions -%}diff --git a/tests/unit/test_prompt_manager.py b/tests/unit/test_prompt_manager.pyindex 6865ca651d..fa384d8c02 100644--- a/tests/unit/test_prompt_manager.py+++ b/tests/unit/test_prompt_manager.py@@ -117,7 +117,7 @@ def test_prompt_manager_template_rendering(prompt_dir):msg_content: str = initial_msg.content[0].textassert '<REPOSITORY_INFO>' in msg_contentassert (- "At the user's request, repository owner/repo has been cloned to directory /workspace/repo."+ "At the user's request, repository owner/repo has been cloned to the current working directory /workspace/repo."in msg_content)assert '</REPOSITORY_INFO>' in msg_content