Skip to content

Commit ad23d5d

Browse files
committed
Add note about preserving patch logic when backporting
1 parent cb4876a commit ad23d5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agents/backport_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def get_instructions() -> str:
193193
- Adapt to older codebase
194194
- Add missing helpers if needed
195195
- Rewrite to use older APIs if needed
196+
- Prioritize preserving the patch's original logic. The final backport must still fix the original bug.
196197
c. Stage ALL resolved files: `git -C <UPSTREAM_REPO> add <file>` for each file
197198
d. Complete cherry-pick: `cherry_pick_continue` tool
198199
3. CRITICAL: Only move to next commit after current one is FULLY COMPLETE

0 commit comments

Comments
 (0)