Skip to content

(Dashboard) Feature: Get Sandbox record route#2024

Merged
ben-fornefeld merged 16 commits intomainfrom
feature/dashboard-killed-sandbox-details
Feb 28, 2026
Merged

(Dashboard) Feature: Get Sandbox record route#2024
ben-fornefeld merged 16 commits intomainfrom
feature/dashboard-killed-sandbox-details

Conversation

@ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Feb 28, 2026

Note

Medium Risk
Introduces a new DB-backed API path and query against billing.sandbox_logs, so correctness depends on schema/migrations and the 7-day retention filter. Read-only and team-scoped, but returning 404 on missing table could hide deployment/config issues.

Overview
Adds GET /sandboxes/{sandboxID}/record to the Dashboard API, returning a SandboxRecord (template/alias, start/stop times, domain, CPU/RAM/disk) for the authenticated team. The handler queries billing.sandbox_logs via a new sqlc query with a 7-day retention window and maps no rows/missing-table to 404, with other errors returning 500.

Written by Cursor Bugbot for commit c25bdb8. This will update automatically on new commits. Configure here.

@ben-fornefeld ben-fornefeld force-pushed the feature/dashboard-killed-sandbox-details branch from 5b9ca57 to e50992f Compare February 28, 2026 01:15
@e2b-dev e2b-dev deleted a comment from claude bot Feb 28, 2026
@e2b-dev e2b-dev deleted a comment from claude bot Feb 28, 2026
@e2b-dev e2b-dev deleted a comment from chatgpt-codex-connector bot Feb 28, 2026

c.JSON(http.StatusOK, api.SandboxDetail{
TemplateID: row.TemplateID,
Alias: alias,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend returning names array instead (properly namespaced)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am matching /sandboxes/{sandboxID} for now. we can start implementing it in the sandbox details in a new pr already though

@ben-fornefeld ben-fornefeld changed the title (Dashboard) Feature: Get Sandbox log route (Dashboard) Feature: Get Sandbox record route Feb 28, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Co-authored-by: Ben Fornefeld <ben-fornefeld@users.noreply.github.com>
@dobrac dobrac assigned dobrac and unassigned jakubno Feb 28, 2026
@ben-fornefeld ben-fornefeld enabled auto-merge (squash) February 28, 2026 07:57
@ben-fornefeld ben-fornefeld merged commit 35dcf12 into main Feb 28, 2026
35 checks passed
@ben-fornefeld ben-fornefeld deleted the feature/dashboard-killed-sandbox-details branch February 28, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants