Skip to content

Enforce Gen 2 workspace limits and cleanup - #58

Merged
yousef20920 merged 2 commits into
mainfrom
codex/gen2-workspace-limits
Sep 26, 2026
Merged

yousef20920 merged 2 commits into
mainfrom
codex/gen2-workspace-limits

Conversation

@yousef20920

Copy link
Copy Markdown
Collaborator

Summary

  • Cap users at two owned Gen 2 workspaces, enforced transactionally; shared workspaces do not count.
  • Prevent workspace creation at the cap and show how to free a slot.
  • Make deletion retryable and non-startable while cleaning up; stop the guest and purge saved snapshots before removing the workspace row.
  • Preserve the existing six-active-sandboxes-per-host and 15-minute idle hibernation settings.

Verification

  • pnpm typecheck
  • pnpm test (1,101 passed, 1 skipped)
  • pnpm lint
  • pnpm build
  • cargo fmt --check and cargo clippy passed

Rust unit tests could not link locally because this Mac has not accepted the Xcode license; CI should run them on its runner.

Copilot AI lite review requested due to automatic review settings September 26, 2026 04:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…limits

# Conflicts:
#	apps/web/lib/gen2/workspaces.ts
@yousef20920
yousef20920 merged commit 3cb04b7 into main Sep 26, 2026
4 checks passed
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.

2 participants