fix(agent): harden workbook patches against whole-file rewrites
Reject large whole-file FIND spans, narrow soft=True to miss-only, check decompose CONTINUE patch counts, and unit-test workbook_solidify. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c36383bf28
commit
d0b184939f
6 files changed
+146
-6
No files matched your search
+8
-1
@@ -1717,7 +1717,14 @@ Reuse lookup: exact → alias → canonicalize → optional local n-gram `near`
|
||||
|
||||
1. `dec` == CONTINUE
|
||||
*n = > fs.apply_patch_blocks path=`path` text=`last_reply` soft=True*
|
||||
*_ = 1*
|
||||
1. `n`
|
||||
*_ = 1*
|
||||
2. *
|
||||
*done = 1*
|
||||
*status = "error"*
|
||||
*err = "no patches applied"*
|
||||
*summary = > extract_plan_summary reply=`last_reply`*
|
||||
*skip_loop = 1*
|
||||
2. `dec` == RUN
|
||||
*_ = 1*
|
||||
3. `dec` == DONE
|
||||
|
||||
Reference in new issue
Block a user