Skip to content

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

0.9.1 will be a fixes release, pushing auto-verify-and-fix to 0.9.2

Dane Schneider5ad4516a248b
diff --git a/app/server/model/plan/build_finish.go b/app/server/model/plan/build_finish.go
index 6cf3a3cc..1dc64c95 100644
--- a/app/server/model/plan/build_finish.go
+++ b/app/server/model/plan/build_finish.go
@@ -295,39 +295,58 @@ func (fileState *activeBuildStreamFileState) onFinishBuildFile(planRes *db.PlanF
return
}
- // otherwise:
- // if this is a verification build, check if the build is finished and call onFinishBuild if it is
- // if this is not a verification build, trigger the verification build
- if activeBuild.IsVerification {
- buildFinished := false
-
- UpdateActivePlan(planId, branch, func(ap *types.ActivePlan) {
- ap.BuiltFiles[filePath] = true
- ap.IsBuildingByPath[filePath] = false
- if ap.BuildFinished() {
- buildFinished = true
- }
- })
-
- log.Printf("Finished building file %s\n", filePath)
+ buildFinished := false
- if buildFinished {
- log.Println("Finished building plan, calling onFinishBuild")
- fileState.onFinishBuild()
+ UpdateActivePlan(planId, branch, func(ap *types.ActivePlan) {
+ ap.BuiltFiles[filePath] = true
+ ap.IsBuildingByPath[filePath] = false
+ if ap.BuildFinished() {
+ buildFinished = true
}
- } else {
- 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,
- })
+ })
+
+ log.Printf("Finished building file %s\n", filePath)
+
+ if buildFinished {
+ log.Println("Finished building plan, calling onFinishBuild")
+ fileState.onFinishBuild()
}
+ // Verification logic below is disabled for now pending more work on prompts
+
+ // otherwise:
+ // if this is a verification build, check if the build is finished and call onFinishBuild if it is
+ // if this is not a verification build, trigger the verification build
+ // if activeBuild.IsVerification {
+ // buildFinished := false
+
+ // UpdateActivePlan(planId, branch, func(ap *types.ActivePlan) {
+ // ap.BuiltFiles[filePath] = true
+ // ap.IsBuildingByPath[filePath] = false
+ // if ap.BuildFinished() {
+ // buildFinished = true
+ // }
+ // })
+
+ // log.Printf("Finished building file %s\n", filePath)
+
+ // if buildFinished {
+ // log.Println("Finished building plan, calling onFinishBuild")
+ // fileState.onFinishBuild()
+ // }
+ // } else {
+ // 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,
+ // })
+ // }
+
}
func (fileState *activeBuildStreamFileState) onBuildFileError(err error) {
diff --git a/releases/server/versions/0.9.1.md b/releases/server/versions/0.9.1.md
index 94a3aef1..56671af1 100644
--- a/releases/server/versions/0.9.1.md
+++ b/releases/server/versions/0.9.1.md
@@ -1,4 +1,3 @@
-- Added an auto-verify and auto-fix step to plan builds to improve reliability and reduce syntax errors, mistaken duplication or removal of code, and other similar issues.
-- Improvements to auto-continue check. It should now do a better job determining whether a plan is finished or should automatically continue.
+- Improvements to auto-continue check. Plandex should now do a better job determining whether a plan is finished or should automatically continue.
- Fix for 'exit status 128' errors in a couple of edge case scenarios.
- Data that is piped into `plandex load` is now automatically given a name.
\ No newline at end of file
diff --git a/releases/server/versions/0.9.2.md b/releases/server/versions/0.9.2.md
new file mode 100644
index 00000000..0edf0135
--- /dev/null
+++ b/releases/server/versions/0.9.2.md
@@ -0,0 +1 @@
+- Added an auto-verify and auto-fix step to plan builds to improve reliability and reduce syntax errors, mistaken duplication or removal of code, and other similar issues.