Return more details when acting on a paused/removed sandbox#2561
Return more details when acting on a paused/removed sandbox#2561
Conversation
PR SummaryMedium Risk Overview Reviewed by Cursor Bugbot for commit 8b05604. Bugbot is set up for automated code reviews on this repo. Configure here. |
❌ 96 Tests Failed:
View the top 3 failed test(s) by shortest run time
View the full list of 88 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
| if markErr := o.sandboxStore.MarkKilled(ctx, teamID, sandboxID, reason); markErr != nil { | ||
| logger.L().Warn(ctx, "Failed to mark sandbox as killed", | ||
| logger.WithSandboxID(sandboxID), | ||
| zap.Error(markErr), | ||
| ) | ||
| } |
There was a problem hiding this comment.
The error handling for MarkKilled is only logging a warning. If this operation fails, the API will continue to return 404 Not Found instead of 410 Gone for a killed sandbox, which contradicts the intent of this change. Consider if this failure should be treated as a critical error or if the system should retry.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8b05604. Configure here.
|
|
||
| func SandboxPausedMsg(sandboxID string) string { | ||
| return fmt.Sprintf("Sandbox %q is paused", sandboxID) | ||
| } |
There was a problem hiding this comment.
Unused SandboxPausedMsg function added as dead code
Low Severity
SandboxPausedMsg is defined in this PR but never called anywhere in the codebase. It's dead code that adds no value.
Reviewed by Cursor Bugbot for commit 8b05604. Configure here.


No description provided.