From bb563d6dd16d0a92868718b5403fe3d017f3ad7c Mon Sep 17 00:00:00 2001 From: Christopher Pereira Date: Tue, 14 Oct 2025 15:01:51 -0300 Subject: [PATCH] Fix typos (#11162) --- .../agenthub/codeact_agent/prompts/additional_info.j2 | 8 ++++---- tests/unit/memory/test_memory.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openhands/agenthub/codeact_agent/prompts/additional_info.j2 b/openhands/agenthub/codeact_agent/prompts/additional_info.j2 index 5e70d3c7ac..5e0ec14ba0 100644 --- a/openhands/agenthub/codeact_agent/prompts/additional_info.j2 +++ b/openhands/agenthub/codeact_agent/prompts/additional_info.j2 @@ -3,9 +3,9 @@ At the user's request, repository {{ repository_info.repo_name }} has been cloned to {{ repository_info.repo_directory }} in the current working directory. {% if repository_info.branch_name %}The repository has been checked out to branch "{{ repository_info.branch_name }}". -IMPORTANT: You should work within the current branch "{{ repository_info.branch_name }}" unless +IMPORTANT: You should work within the current branch "{{ repository_info.branch_name }}" unless: 1. the user explicitly instructs otherwise - 2. if the current branch is "main", "master", or another default branch where direct pushes may be unsafe + 2. the current branch is "main", "master", or another default branch where direct pushes may be unsafe {% endif %} {% endif %} @@ -35,9 +35,9 @@ For example, if you are using vite.config.js, you should set server.host and ser {% endif %} {% if runtime_info.custom_secrets_descriptions %} -You are have access to the following environment variables +You have access to the following environment variables {% for secret_name, secret_description in runtime_info.custom_secrets_descriptions.items() %} -* $**{{ secret_name }}**: {{ secret_description }} +* **${{ secret_name }}**: {{ secret_description }} {% endfor %} {% endif %} diff --git a/tests/unit/memory/test_memory.py b/tests/unit/memory/test_memory.py index 37b055bc47..5d0f7fcc28 100644 --- a/tests/unit/memory/test_memory.py +++ b/tests/unit/memory/test_memory.py @@ -485,7 +485,7 @@ def test_custom_secrets_descriptions_serialization(prompt_dir): # Verify that the workspace context includes the custom_secrets_descriptions assert '' in workspace_context for secret_name, secret_description in custom_secrets.items(): - assert f'$**{secret_name}**' in workspace_context + assert f'**${secret_name}**' in workspace_context assert secret_description in workspace_context assert '' in workspace_context