Skip to content

[Feat] Add optional Modal sandbox region placement - #27

Merged
mrubens merged 1 commit into
developfrom
feature/modal-regions-27zmntzm0uhdy
Jul 9, 2026
Merged

[Feat] Add optional Modal sandbox region placement#27
mrubens merged 1 commit into
developfrom
feature/modal-regions-27zmntzm0uhdy

Conversation

@roomote-roomote-v1

Copy link
Copy Markdown

Opened on behalf of Matt Rubens. Follow up by mentioning @openmote, in the web UI, or in Slack.

What changed

Operators can pin Modal task sandboxes to one or more Modal placement regions via optional deployment-level MODAL_REGIONS (Settings → Compute advanced field or env var). Roomote passes those regions through on both fresh create and snapshot resume.

Why this change was made

Modal already supports region selection on sandbox create, but Roomote never wired it. Without placement control, sandboxes can land in regions where model providers geo-block requests (for example xAI/Grok from EU egress).

Impact

  • Unset MODAL_REGIONS keeps Modal’s default placement (no cost multiplier, previous behavior).
  • Setting values like us or us-west pins new and resumed sandboxes; applies only at spawn time, not to already-running sandboxes.
  • Distinct from MODAL_ECR_REGION, which only controls ECR image pull authentication.

@roomote-roomote-v1

roomote-roomote-v1 Bot commented Jul 9, 2026

Copy link
Copy Markdown
Author

No code issues found. See task

@mrubens
mrubens marked this pull request as ready for review July 9, 2026 11:19
@mrubens
mrubens merged commit f016aa8 into develop Jul 9, 2026
1 check passed
brunobergher pushed a commit that referenced this pull request Jul 9, 2026
Co-authored-by: Matt Rubens <2600+mrubens@users.noreply.github.com>
brunobergher pushed a commit that referenced this pull request Jul 9, 2026
Co-authored-by: Matt Rubens <2600+mrubens@users.noreply.github.com>
brunobergher added a commit that referenced this pull request Jul 9, 2026
* ui

* Update Teams app package manifest

* Fix setup bootstrap admin sign-in

* [Feat] Add optional Modal sandbox region placement (#27)

Co-authored-by: Matt Rubens <2600+mrubens@users.noreply.github.com>

* Fix setup OAuth redirect handling

* Remove env vars info note from setup screens

* Align sign-in page with setup styling

* Keep setup auth callbacks on credential step

* Fix Microsoft setup bootstrap admission

* Continue setup after bootstrap auth

* anonymous stats ui

* Align comms settings setup flow

* Layout fixes

* Align reset password page with logged-out styling

* Remove unused setup invoke import

* Make setup helper declarations internal

* Address auth review feedback

* Fix StepInvoke test component mock

* Fix Teams docs group chat scope

---------

Co-authored-by: openmote[bot] <297980118+openmote[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <2600+mrubens@users.noreply.github.com>
@mrubens
mrubens deleted the feature/modal-regions-27zmntzm0uhdy branch July 12, 2026 04:19
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