Skip to content

Show how long a microsandbox allocation has been suspended and when it is reclaimed - #125

Merged
SaladDay merged 1 commit into
mainfrom
codex/web-suspended-since
Sep 25, 2026
Merged

SaladDay merged 1 commit into
mainfrom
codex/web-suspended-since

Conversation

@SaladDay

@SaladDay SaladDay commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Uses compute_phase_changed_at from #123. On a microsandbox node's page, the allocations table gets an In this state column:

  • Suspended: "Suspended for 2 hours · reclaimed in about 22 hours", or "reclaim due" once the estimate has passed. The estimate is the time the allocation entered its phase plus the deployment's suspension.retention_seconds. It is approximate, as a HelpTip on the header says.
  • Other phases: "Since 5 minutes ago". Hovering shows the exact time.
  • No recorded phase time (allocations from before the migration): "—".
  • Docker and E2B: no column, since they have no suspension policy.

The arithmetic is a small pure function with a unit test. The fixture allocations now carry compute_phase_changed_at.

Validation: typecheck, 334 web unit tests, 15 browser acceptance tests on headless Chromium. The gate runs make check.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit 3c31ade into main Sep 25, 2026
1 of 2 checks passed
SaladDay added a commit that referenced this pull request Sep 25, 2026
…125)

Keep #124's Core-key sign-in, fixed console actor label and configuration
names; the console still forwards every signed-in /core/v1 request by the
prefix rule instead of the removed allowlists. Installer, console tests and
docs take #124's wording with /core/v1 paths in place of /core/v1/admin.
#123's allocation test uses automatic placement, since P4 removed explicit
node selection.
@SaladDay
SaladDay deleted the codex/web-suspended-since branch October 7, 2026 06:38
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.

1 participant