Skip to content

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

Fix for unhelpful "Error getting plan, context, convo, or summaries" error message when OpenAI returns an error for invalid API key or insufficient credits, fixes #32 and friends

Dane Schneider3b0ba47bd24c
diff --git a/app/server/model/plan/tell_load.go b/app/server/model/plan/tell_load.go
index 03986113..7ac469f1 100644
--- a/app/server/model/plan/tell_load.go
+++ b/app/server/model/plan/tell_load.go
@@ -261,7 +261,7 @@ func (state *activeTellStreamState) loadTellPlan() error {
active.StreamDoneCh <- &shared.ApiError{
Type: shared.ApiErrorTypeOther,
Status: http.StatusInternalServerError,
- Msg: "Error getting plan, context, convo, or summaries",
+ Msg: fmt.Sprintf("Error loading plan: %v", err),
}
return err
}