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
add some logging to exec status call
Dane Schneider2f5b9591e9d7
diff --git a/app/server/model/plan/exec_status.go b/app/server/model/plan/exec_status.goindex 2db91588..80065e4b 100644--- a/app/server/model/plan/exec_status.go+++ b/app/server/model/plan/exec_status.go@@ -13,9 +13,14 @@ import ()func ExecStatusShouldContinue(client *openai.Client, message string, ctx context.Context) (bool, error) {+ log.Println("Checking if plan should continue based on exec status")+// First try to determine if the plan should continue based on the last paragraph without calling the modelparagraphs := strings.Split(message, "\n\n")lastParagraph := paragraphs[len(paragraphs)-1]++ log.Printf("Last paragraph: %s\n", lastParagraph)+if lastParagraph != "" {if strings.Contains(lastParagraph, "All tasks have been completed") ||strings.Contains(lastParagraph, "all tasks have been completed") ||