fix: Add support for sandbox cleanup

This commit is contained in:
Abhisek Datta
2026-01-08 14:30:33 +05:30
parent 9f77cca5e5
commit f07d8e6a38
6 changed files with 66 additions and 7 deletions
+1
View File
@@ -227,6 +227,7 @@ func (g *packageManagerGuard) continueExecution(ctx context.Context, pc *package
if err != nil {
return fmt.Errorf("failed to apply sandbox: %w", err)
}
defer result.Close() // Clean up sandbox resources
// Only run the command if the sandbox didn't already execute it
if result.ShouldRun() {