feat(vm-events): enhance VM event handling and introduce sandbox evic…#3314
Merged
pedrofrxncx merged 1 commit intomainfrom May 8, 2026
Merged
feat(vm-events): enhance VM event handling and introduce sandbox evic…#3314pedrofrxncx merged 1 commit intomainfrom
pedrofrxncx merged 1 commit intomainfrom
Conversation
…tion logic - Updated event types in `vm-events.ts` to include new daemon events. - Added `STALE_CLAIM_DETECTION_MS` for improved stale sandbox detection. - Implemented `writeSse` function for consistent SSE event writing. - Enhanced UI to handle "sandbox-evicted" phase, prompting users to start a new sandbox. - Updated `EnvContent` and `PreviewContent` components to reflect new eviction logic and reset SSE connection on retries. - Refactored `VmEventsProvider` to manage SSE connection resets after terminal failures.
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsSuggested: Minor ( React with an emoji to override the release type:
Current version:
|
pedrofrxncx
added a commit
that referenced
this pull request
May 8, 2026
Reverts 76a9187 — enhanced VM event handling and sandbox eviction logic. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
pedrofrxncx
added a commit
that referenced
this pull request
May 8, 2026
* revert: back to 76a9187 (pre upstream-status changes and release bump) Reverts: - fix(upstream-status): redefine UpstreamStatus type to include specific states (3fe3c0a) - [release]: bump to 2.310.9 (59d8046) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * revert: undo feat(vm-events) from PR #3314 Reverts 76a9187 — enhanced VM event handling and sandbox eviction logic. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * Bump version from 0.4.2 to 0.4.4 --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.
…tion logic
vm-events.tsto include new daemon events.STALE_CLAIM_DETECTION_MSfor improved stale sandbox detection.writeSsefunction for consistent SSE event writing.EnvContentandPreviewContentcomponents to reflect new eviction logic and reset SSE connection on retries.VmEventsProviderto manage SSE connection resets after terminal failures.What is this contribution about?
Screenshots/Demonstration
How to Test
Migration Notes
Review Checklist
Summary by cubic
Adds fast sandbox eviction detection and a clearer recovery flow. The app now surfaces a “Sandbox was removed” state and reconnects SSE cleanly after starting a new sandbox.
New Features
gonefor self-heal cases).VmEventsProviderexposesresetConnection()and the UI calls it on retries to re-establish SSE after terminal failures.log|status|scripts|tasks|intent|phases|branch-status|transition.@decocms/sandbox/daemontypes; UI consumesUpstreamStatus, branch status, and daemon events from there.Refactors
writeSse()and unified error emission.processes/reloadhandling in favor oftasksand event-driven transitions.sandbox-evictedtoClaimFailureReason; bumps@decocms/sandboxto0.4.3and exports./daemon.Written for commit 059db3a. Summary will update on new commits.