fix: automatically provision Reactor on first render - #6352
Merged
Conversation
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
A fresh install with a Reactor API key previously rejected every render unless the operator manually installed a Python SDK. The first authorized render now prepares a private Python 3.12 and pinned SDK automatically, using a checksum-verified uv release. Healthy environments are reused; broken installations are repaired, concurrent jobs share preparation, and cancellation during setup never opens a paid session. Existing custom runtime overrides are verified without modifying them.
Retain the headless Python/WebRTC capture adapter: Reactor's JavaScript SDK depends on browser WebRTC APIs, and its recording API also requires a live session with model recording support. Document this distinction and remove the manual-setup requirement. Delete partial capture directories on failure or cancellation, retain verified installer downloads for repairs, and allow bounded time for slow downloads. No installation or provider call runs at server boot.
Test plan