From f081d71ca8f1f722273eb34ac2fd3c7b0bbf5d7c Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Thu, 30 Apr 2026 12:19:35 -0400 Subject: [PATCH] Remove run-mode note from bug-fix prompt --- bugbug/tools/bug_fix/agent.py | 12 +----------- bugbug/tools/bug_fix/prompts/system.md | 3 --- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/bugbug/tools/bug_fix/agent.py b/bugbug/tools/bug_fix/agent.py index d49132eab5..806cb132c2 100644 --- a/bugbug/tools/bug_fix/agent.py +++ b/bugbug/tools/bug_fix/agent.py @@ -112,20 +112,10 @@ def load_system_prompt( dry_run: bool, ) -> str: tmpl = (HERE / "prompts" / "system.md").read_text() - if dry_run: - mode = ( - "**DRY-RUN ACTIVE.** Bugzilla write tools (`update_bug`, " - "`add_comment`, `add_attachment`, `create_bug`) are disabled — " - "do not attempt them. Source-repo edits (Write/Edit) are still " - "allowed so you can prepare and inspect a candidate patch; the " - "caller will review diffs manually." - ) - else: - mode = "Writes are live. Be careful." + return tmpl.format( rules_dir=str(rules_dir.resolve()), extra_instructions=extra or "(none)", - run_mode_note=mode, ) diff --git a/bugbug/tools/bug_fix/prompts/system.md b/bugbug/tools/bug_fix/prompts/system.md index 86c887f045..5ece5c8667 100644 --- a/bugbug/tools/bug_fix/prompts/system.md +++ b/bugbug/tools/bug_fix/prompts/system.md @@ -81,9 +81,6 @@ Always be **brief** and to the point. Do not post long-winded comments, develope Do **not** post private comments, all developers on the bug need to see the comments. -# Run mode - -{run_mode_note} # Additional instructions for this run