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
[44;97;1m π€ Plandex [0;0;22m π Refactor Tell, execTellPlan, and summarizeConvo functions βοΈ Edits: β’ app/server/model/plan/tell.go β Log start of Tell operation β Log error storing model stream β Log successful completion of Tell operation β Log start of execTellPlan operation β Log completion of execTellPlan operation β Log start of summarizeConvo β Log error generating plan summary
Dane Schneider8d36e22ff56d
diff --git a/app/server/model/plan/tell.go b/app/server/model/plan/tell.goindex 30f41000..7e7eb7f6 100644--- a/app/server/model/plan/tell.go+++ b/app/server/model/plan/tell.go@@ -23,6 +23,7 @@ import ()func Tell(client *openai.Client, plan *db.Plan, branch string, auth *types.ServerAuth, req *shared.TellPlanRequest) error {+ log.Println("Tell: Starting Tell operation") // Log start of Tell operation// goEnv := os.Getenv("GOENV") // Fetch the GOENV environment variable// log.Println("GOENV: " + goEnv)@@ -58,6 +59,7 @@ func Tell(client *openai.Client, plan *db.Plan, branch string, auth *types.Serveif err != nil {log.Printf("Error storing model stream: %v\n", err)+ log.Printf("Tell: Error storing model stream: %v\n", err) // Log error storing model streamreturn fmt.Errorf("error storing model stream: %v", err)}@@ -67,10 +69,12 @@ func Tell(client *openai.Client, plan *db.Plan, branch string, auth *types.Servego execTellPlan(client, plan, branch, auth, req, active, 0, "")+ log.Println("Tell: Tell operation completed successfully") // Log successful completion of Tell operationreturn nil}func execTellPlan(client *openai.Client, plan *db.Plan, branch string, auth *types.ServerAuth, req *shared.TellPlanRequest, active *types.ActivePlan, iteration int, missingFileResponse shared.RespondMissingFileChoice) {+ log.Printf("execTellPlan: Starting execTellPlan operation, iteration: %d\n", iteration) // Log start of execTellPlan operationcurrentUserId := auth.User.IdcurrentOrgId := auth.OrgId@@ -101,6 +105,7 @@ func execTellPlan(client *openai.Client, plan *db.Plan, branch string, auth *typMsg: "Error setting plan status to replying",}+ log.Printf("execTellPlan: execTellPlan operation completed, iteration: %d\n", iteration) // Log completion of execTellPlan operationreturn}@@ -927,6 +932,7 @@ type summarizeConvoParams struct {}func summarizeConvo(client *openai.Client, params summarizeConvoParams) error {+ log.Printf("summarizeConvo: Starting summarizeConvo for planId: %s\n", params.planId) // Log start of summarizeConvoplanId := params.planIdbranch := params.branchconvo := params.convo@@ -1002,6 +1008,7 @@ func summarizeConvo(client *openai.Client, params summarizeConvoParams) error {if err != nil {log.Printf("Error generating plan summary for plan %s: %v\n", planId, err)+ log.Printf("summarizeConvo: Error generating plan summary for plan %s: %v\n", params.planId, err) // Log error generating plan summaryreturn err}