From edbe3087875f87fbe9023e5debec366ad5ac1096 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 29 Jul 2026 20:35:50 +0000 Subject: [PATCH] fix(core): clarify patch context guidance --- packages/core/src/tool/patch.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/tool/patch.txt b/packages/core/src/tool/patch.txt index 72c0489c0d..df2d80f093 100644 --- a/packages/core/src/tool/patch.txt +++ b/packages/core/src/tool/patch.txt @@ -12,6 +12,8 @@ Each operation starts with one of three headers: *** Delete File: - remove an existing file. Nothing follows. *** Update File: - patch an existing file in place (optionally with a rename). +In update hunks, lines prefixed with a space are unchanged context and must match the current file exactly. If a line changes, emit the old line with `-` and the new line with `+`; never place the intended new version in an unchanged context line. + Example patch: ```