feat(devbox): delete paused runtimes after 24 hours - #258
Open
zjy365 wants to merge 1 commit into
Open
Conversation
zjy365
force-pushed
the
codex/devbox-delete-after-pause
branch
from
August 5, 2026 08:33
67828a9 to
ebea456
Compare
zjy365
marked this pull request as ready for review
August 6, 2026 08:12
Member
|
P1 —— 合并前应解决或拿到明确决策 |
Use short-lived database cleanup claims and token-fenced finalization so Devbox API calls never hold database transactions. Serialize Chat activity against cleanup claims and retain Deploy Task history while retrying failed runtime cleanup.
zjy365
force-pushed
the
codex/devbox-delete-after-pause
branch
from
August 6, 2026 12:29
b9e720f to
e2a7ba7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
archiveAfterPauseTimeDevbox contractWhy
The previous lifecycle coupled ephemeral Devbox storage to durable deployment history. Paused Devboxes could remain archived for an extended period while Deployment Task audit records were deleted after 30 days. This change separates those lifecycles: runtime storage is reclaimed promptly, while task history remains available.
Behavior and impact
runtimeState=deletedValidation
bun checkbun typecheckhelm lint charts/brain-systembun run db:generate(no additional schema changes)git diff --checkNotes
A live Devbox DELETE canary was not run because the resource API timed out and no dedicated test namespace was available. Root
bun lintcurrently fails on unchangedpackages/uifiles that matchmain; the same ESLint failure appears in PR CI.