Harden plan parent: first DECISION, soft patches, and empty-tool step retry.

Stop import/fence prompt breakage, prefer modern workbook imports, accept
common patch shapes, and recover when workers CALL disallowed tools.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-16 12:07:17 +08:00
1 parent ecc92f473a
commit 1bf414c745
7 files changed
+317 -39

No files matched your search

+5 -2
View File
@@ -52,7 +52,10 @@ Exact FIND→REPLACE once in a UTF-8 text file. `find` must match exactly once.
## apply_patch_blocks
+ `path`
+ `text`
+ `soft`=False
Apply plan-style `<<<` / FIND / === / REPLACE / `>>>` blocks from `text` to `path`.
Apply plan-style triple-angle FIND/REPLACE blocks from `text` to `path`.
Also accepts fenced find/replace pairs and minimal Begin Patch hunks.
When `soft=True`, FIND failures return `0` instead of aborting the run.
**> host_apply_patch_blocks path=`path` text=`text`**
**> host_apply_patch_blocks path=`path` text=`text` soft=`soft`**
+3 -2
View File
@@ -52,7 +52,8 @@ description: 中文文件系统包装
## 应用补丁块
+ `路径`
+ `文本`
+ `软失败`=False
解析规划回复中的 `<<<` / FIND / === / REPLACE / `>>>` 块并应用到 `路径`。
解析规划回复中的 FIND/REPLACE 块并应用到 `路径`。`软失败=真` 时找不到 FIND 返回 0 而不中断。
**> host_apply_patch_blocks path=`路径` text=`文本`**
**> host_apply_patch_blocks path=`路径` text=`文本` soft=`软失败`**