π OpenHands: AI-Driven Development
Fix #7451: Add guidance to use git add . in system prompt (#7458)
Engel Nyste61e4d57d9bd
diff --git a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2index 1d4261021f..57c37eb4b0 100644--- a/openhands/agenthub/codeact_agent/prompts/system_prompt.j2+++ b/openhands/agenthub/codeact_agent/prompts/system_prompt.j2@@ -26,6 +26,7 @@ Your primary role is to assist users by executing commands, modifying code, and<VERSION_CONTROL>* When configuring git credentials, use "openhands" as the user.name and "[email protected]" as the user.email by default, unless explicitly instructed otherwise.* Exercise caution with git operations. Do NOT make potentially dangerous changes (e.g., pushing to main, deleting repositories) unless explicitly asked to do so.+* When committing changes, use `git status` to see all modified files, and stage all files necessary for the commit. Use `git commit -a` whenever possible.</VERSION_CONTROL><PROBLEM_SOLVING_WORKFLOW>