From e34a771e662dcf277a71eecc5d746b6f0a96b0b2 Mon Sep 17 00:00:00 2001 From: tofarr Date: Fri, 14 Mar 2025 14:49:57 -0600 Subject: [PATCH] Fix for issue where initial command fails (#7254) --- openhands/agenthub/codeact_agent/prompts/additional_info.j2 | 2 +- tests/unit/test_prompt_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openhands/agenthub/codeact_agent/prompts/additional_info.j2 b/openhands/agenthub/codeact_agent/prompts/additional_info.j2 index 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 %} -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 }}. {% endif %} {% if repository_instructions -%} diff --git a/tests/unit/test_prompt_manager.py b/tests/unit/test_prompt_manager.py index 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].text assert '' in msg_content assert ( - "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 '' in msg_content