You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feat: enhance sandbox management with kill button (#175)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Adds sandbox kill actions (details header + list table), introduces
confirmation popover, and refines sandbox info/metrics polling tied to
running state.
>
> - **Sandbox Details (Inspect)**:
> - Add `KillButton` with confirmation via `AlertPopover`; disabled when
not running.
> - `RefreshControl` now shows 0s polling when sandbox not running.
> - Header layout updated to include Kill + Refresh controls.
> - **Sandboxes List**:
> - New `actions` column with dropdown to kill a running sandbox; shows
loader and confirmation sub-menu.
> - Row link updated with `passHref`.
> - **State/Data Fetching**:
> - `SandboxContext` now tracks `isRunningState` and `lastFallbackData`.
> - SWR keys/requests switched from `serverSandboxInfo` to
`lastFallbackData`.
> - Metrics polling and refresh interval dynamically pause when not
running.
> - **Server Actions**:
> - New `killSandboxAction` to DELETE `/sandboxes/{sandboxID}` with
auth; maps errors (404 → "Sandbox not found").
> - **UI Components**:
> - New `AlertPopover` primitive for confirm/cancel flows.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d8a1473. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments