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 session ID to plan activation and creation
Dane Schneider6c2ba5c98495
diff --git a/app/server/model/plan/activate.go b/app/server/model/plan/activate.goindex 7c724c8e..1a9547b3 100644--- a/app/server/model/plan/activate.go+++ b/app/server/model/plan/activate.go@@ -20,6 +20,7 @@ func activatePlan(prompt string,buildOnly,autoContext bool,+ sessionId string,) (*types.ActivePlan, error) {log.Printf("Activate plan: plan ID %s on branch %s\n", plan.Id, branch)@@ -53,6 +54,7 @@ func activatePlan(prompt,buildOnly,autoContext,+ sessionId,)modelStream = &db.ModelStream{diff --git a/app/server/model/plan/state.go b/app/server/model/plan/state.goindex 01dcd221..aa5db029 100644--- a/app/server/model/plan/state.go+++ b/app/server/model/plan/state.go@@ -19,8 +19,8 @@ func GetActivePlan(planId, branch string) *types.ActivePlan {return activePlans.Get(strings.Join([]string{planId, branch}, "|"))}-func CreateActivePlan(orgId, userId, planId, branch, prompt string, buildOnly, autoContext bool) *types.ActivePlan {- activePlan := types.NewActivePlan(orgId, userId, planId, branch, prompt, buildOnly, autoContext)+func CreateActivePlan(orgId, userId, planId, branch, prompt string, buildOnly, autoContext bool, sessionId string) *types.ActivePlan {+ activePlan := types.NewActivePlan(orgId, userId, planId, branch, prompt, buildOnly, autoContext, sessionId)key := strings.Join([]string{planId, branch}, "|")activePlans.Set(key, activePlan)