From c1eaf5fcabb32752c742e834cbd800a3d1c1af4e Mon Sep 17 00:00:00 2001 From: YLRong Date: Fri, 27 Feb 2026 17:06:40 +0800 Subject: [PATCH] fix: remove misleading hint from replace pos-only description The hint '(MOST COMMON for single-line edits)' misleads agents into thinking pos-only replace is the default behavior. When agents want to replace multiple lines but only specify pos without end, the tool only replaces one line, causing duplicate code from retained lines. --- src/tools/hashline-edit/tool-description.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/hashline-edit/tool-description.ts b/src/tools/hashline-edit/tool-description.ts index 2d452ccfa..c8a566860 100644 --- a/src/tools/hashline-edit/tool-description.ts +++ b/src/tools/hashline-edit/tool-description.ts @@ -34,7 +34,7 @@ FILE CREATION: CRITICAL: only unanchored append/prepend can create a missing file. OPERATION CHOICE: - replace with pos only -> replace one line at pos (MOST COMMON for single-line edits) + replace with pos only -> replace one line at pos replace with pos+end -> replace ENTIRE range pos..end as a block (ranges MUST NOT overlap across edits) append with pos/end anchor -> insert after that anchor prepend with pos/end anchor -> insert before that anchor