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
fix for reject all files
Dane Schneider3fb15b839f35
diff --git a/app/server/db/result_helpers.go b/app/server/db/result_helpers.goindex 95379cca..0e33dfdc 100644--- a/app/server/db/result_helpers.go+++ b/app/server/db/result_helpers.go@@ -701,7 +701,7 @@ func RejectPlanFiles(orgId, planId string, files []string, now time.Time) errorreturn nil}-func RejectPlanFile(orgId, planId, file string, now time.Time) error {+func RejectPlanFile(orgId, planId, filePathOrResultId string, now time.Time) error {resultsDir := getPlanResultsDir(orgId, planId)results, err := GetPlanFileResults(orgId, planId)@@ -713,7 +713,7 @@ func RejectPlanFile(orgId, planId, file string, now time.Time) error {for _, result := range results {go func(result *PlanFileResult) {- if result.Path == file && result.AppliedAt == nil && result.RejectedAt == nil {+ if (result.Path == filePathOrResultId || result.Id == filePathOrResultId) && result.AppliedAt == nil && result.RejectedAt == nil {result.RejectedAt = &now} else {errCh <- nil