Skip to content

Commit 7ec1f25

Browse files
authored
Merge pull request #169 from Kaguya-19/Kaguya-19/fix/big_file_v2
fix(large-file-repair): preserve pendingRepair state when non-file tools fail
2 parents 141161b + f5cee4b commit 7ec1f25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/agent/loop/LargeFileRepair.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export class LargeFileRepair {
6262
if (this.wroteFile) {
6363
const risk = hasPostDraftRisk(results);
6464
if (!risk) {
65-
this.pendingLargeFileRepair = false;
65+
if (results.every((r) => r.type === "success")) {
66+
this.pendingLargeFileRepair = false;
67+
}
6668
return undefined;
6769
}
6870
return this.tryPostDraft("large_file_post_draft_repair");

0 commit comments

Comments
 (0)