Skip to content

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

cleanup

Dane Schneiderba1febc84ec2
diff --git a/app/cli/lib/apply.go b/app/cli/lib/apply.go
index e37366f4..3e59df33 100644
--- a/app/cli/lib/apply.go
+++ b/app/cli/lib/apply.go
@@ -241,8 +241,8 @@ func MustApplyPlan(planId, branch string, autoConfirm bool) {
// Commit the changes
msg := currentPlanState.PendingChangesSummaryForApply()
- log.Println("Committing changes with message:")
- log.Println(msg)
+ // log.Println("Committing changes with message:")
+ // log.Println(msg)
// spew.Dump(currentPlanState)
diff --git a/app/shared/plan_result_pending_summary.go b/app/shared/plan_result_pending_summary.go
index d39b6ed0..8d6c2180 100644
--- a/app/shared/plan_result_pending_summary.go
+++ b/app/shared/plan_result_pending_summary.go
@@ -138,6 +138,13 @@ func (state *CurrentPlanState) pendingChangesSummary(forApply bool) string {
descMsgs = append(descMsgs, fmt.Sprintf(" ✏️ %s", desc.CommitMsg))
}
+ msgs = append(msgs, descMsgs...)
+
+ // for an apply commit message, we don't need to list file updates
+ if forApply {
+ continue
+ }
+
pendingNewFilesSet := make(map[string]bool)
pendingReplacementPathsSet := make(map[string]bool)
pendingReplacementsByPath := make(map[string][]*Replacement)
@@ -158,13 +165,6 @@ func (state *CurrentPlanState) pendingChangesSummary(forApply bool) string {
continue
}
- msgs = append(msgs, descMsgs...)
-
- // for an apply commit message, we don't need to list file updates
- if forApply {
- continue
- }
-
var pendingNewFiles []string
var pendingReplacementPaths []string