Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
small fix to when fileState is updated with currentState
Dane Schneider10d062675663
diff --git a/app/server/model/plan/build_exec.go b/app/server/model/plan/build_exec.goindex 3434e8eb..aab86349 100644--- a/app/server/model/plan/build_exec.go+++ b/app/server/model/plan/build_exec.go@@ -175,6 +175,9 @@ func (fileState *activeBuildStreamFileState) buildFile() {}}+ fileState.currentState = currentState+ fileState.contextPart = contextPart+if currentState == "" {log.Printf("File %s not found in model context or current plan. Creating new file.\n", filePath)@@ -202,9 +205,6 @@ func (fileState *activeBuildStreamFileState) buildFile() {return}- fileState.currentState = currentState- fileState.contextPart = contextPart-log.Println("Getting file from model: " + filePath)// log.Println("File context:", fileContext)