Skip to content

Suspend idle Local VMs safely - #156

Closed
milind-soni wants to merge 5 commits into
codex/box-provision-rollbackfrom
codex/local-vm-idle-suspend
Closed

Suspend idle Local VMs safely#156
milind-soni wants to merge 5 commits into
codex/box-provision-rollbackfrom
codex/local-vm-idle-suspend

Conversation

@milind-soni

Copy link
Copy Markdown
Owner

Summary

  • automatically stop a running Local VM after 8 hours without activity
  • renew the idle window for bot runtime events, VM starts, and preview screenshots
  • restore the timer for a VM that survived an app restart
  • defer suspension while a bot turn or lifecycle operation is active
  • cancel the timer after an explicit stop or removal
  • explain the behavior in Local VM settings

The backstop only stops the container. It never removes the VM, image, or durable workspace, so starting again is reversible.

Verification

  • pnpm test (457 passed, 8 skipped; updater tests 11 passed)
  • pnpm build
  • deterministic timer tests cover renewal, active-work deferral, cancellation, and retry after transient failure

Merge order

This is stacked on #155. Merge #151, #153, #154, #155, then this PR.

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 13d3f0fa-8c36-4b21-816d-fa65622507f8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@milind-soni

Copy link
Copy Markdown
Owner Author

Superseded by #158, which reapplies this change cleanly on current main and has now merged.

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