Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/markform/src/harness/programmaticFill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,19 @@ async function runMultiTurnForItems(
};
}

// Call onPatchesGenerated callback (after agent, before applying)
if (mergedCallbacks?.onPatchesGenerated) {
try {
mergedCallbacks.onPatchesGenerated({
turnNumber: startTurn + turnsUsed + 1,
patches: response.patches,
stats: response.stats,
});
} catch (cbError) {
warnCallbackError('onPatchesGenerated', cbError);
}
}

// Apply patches
let lastCoercionWarnings: PatchWarning[] | undefined;
if (response.patches.length > 0) {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.