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:
1 parent
ecc92f473a
commit
1bf414c745
7 files changed
+317
-39
No files matched your search
@@ -532,7 +532,7 @@ impl HostFn {
|
||||
Self::ExtNativePath => &["name"],
|
||||
Self::OuterCallLine => &[],
|
||||
Self::TextPatch => &["path", "find", "replace"],
|
||||
Self::ApplyPatchBlocks => &["path", "text"],
|
||||
Self::ApplyPatchBlocks => &["path", "text", "soft"],
|
||||
Self::WritebackScanPath => &["path"],
|
||||
Self::MapSet => &["map", "key", "value"],
|
||||
Self::ListAppend => &["list", "item"],
|
||||
@@ -842,9 +842,12 @@ pub fn call_host(
|
||||
require(bound, "find")?,
|
||||
require(bound, "replace")?,
|
||||
),
|
||||
HostFn::ApplyPatchBlocks => {
|
||||
fs::apply_patch_blocks(ctx, require(bound, "path")?, require(bound, "text")?)
|
||||
}
|
||||
HostFn::ApplyPatchBlocks => fs::apply_patch_blocks(
|
||||
ctx,
|
||||
require(bound, "path")?,
|
||||
require(bound, "text")?,
|
||||
bound.get("soft"),
|
||||
),
|
||||
HostFn::WritebackScanPath => writeback::scan_path(ctx, require(bound, "path")?),
|
||||
HostFn::WritebackRecord => writeback::record(
|
||||
ctx,
|
||||
|
||||
Reference in new issue
Block a user