Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

🤖 Plandex → Pass preBuildState and updated values to verification ActiveBuild

Dane Schneiderdd9d24de3ac3
diff --git a/app/server/model/plan/build_finish.go b/app/server/model/plan/build_finish.go
index a49797d6..8b51fbbc 100644
--- a/app/server/model/plan/build_finish.go
+++ b/app/server/model/plan/build_finish.go
@@ -287,14 +287,16 @@ func (fileState *activeBuildStreamFileState) onFinishBuildFile(planRes *db.PlanF
log.Println("preBuildState:\n", fileState.preBuildState)
log.Println("updated:\n", fileState.updated)
- go fileState.execPlanBuild(&types.ActiveBuild{
- ReplyId: activeBuild.ReplyId,
- FileDescription: activeBuild.FileDescription,
- FileContent: activeBuild.FileContent,
- Path: activeBuild.Path,
- Idx: activeBuild.Idx,
- IsVerification: true,
- })
+go fileState.execPlanBuild(&types.ActiveBuild{
+ ReplyId: activeBuild.ReplyId,
+ FileDescription: activeBuild.FileDescription,
+ FileContent: activeBuild.FileContent,
+ Path: activeBuild.Path,
+ Idx: activeBuild.Idx,
+ IsVerification: true,
+ ToVerifyPreBuildState: fileState.preBuildState,
+ ToVerifyUpdatedState: fileState.updated,
+})
}
} else {
if activePlan.PathFinished(filePath) {
@@ -374,3 +376,4 @@ func (fileState *activeBuildStreamFileState) onBuildFileError(err error) {
log.Printf("Error clearing uncommitted changes: %v\n", err)
}
}
+