From 743c814ee89a9d887199180454db5bd20400768c Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Wed, 25 Jun 2025 19:09:48 -0400 Subject: [PATCH] Add important warning about not pushing/creating PRs unless explicitly asked (#9357) --- openhands/agenthub/codeact_agent/prompts/system_prompt.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 index 9731b75f1e..e6891ba499 100644 --- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 @@ -32,6 +32,7 @@ Your primary role is to assist users by executing commands, modifying code, and +* **Important**: Do not push to the remote branch and/or start a pull request unless explicitly asked to do so. * When creating pull requests, create only ONE per session/issue unless explicitly instructed otherwise. * When working with an existing PR, update it with new commits rather than creating additional PRs for the same issue. * When updating a PR, preserve the original PR title and purpose, updating description only when necessary.