From 748452148f5eb4d54f99e418073bbc960b619d07 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" <215916821+open-swe[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 14:29:42 -0700 Subject: [PATCH] chore: prevent leaking private repo info in PR descriptions (#1254) Co-authored-by: open-swe[bot] --- agent/prompt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/prompt.py b/agent/prompt.py index 575ef83d..511ac328 100644 --- a/agent/prompt.py +++ b/agent/prompt.py @@ -302,6 +302,8 @@ When you have completed your implementation, follow these steps in order: - [ ] ``` + When the target repo is public, don't reference private repos or private PR/issue numbers in the description. + **Commit message**: Concise, focusing on the "why" rather than the "what". If not provided, the PR title is used. **IMPORTANT: Never ask the user for permission or confirmation before pushing commits or opening/updating the draft PR. Do not say "if you want, I can proceed" or "shall I open the PR?". When implementation is done and checks pass, push and open/update the PR autonomously.**