Skip to content

feat(sandbox): add Modal sandbox resource options - #4455

Merged
seratch merged 1 commit into
openai:mainfrom
Filimoa:agent/modal-sandbox-resources
Aug 16, 2026
Merged

seratch merged 1 commit into
openai:mainfrom
Filimoa:agent/modal-sandbox-resources

Conversation

@Filimoa

@Filimoa Filimoa commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

This pull request adds optional cpu and memory settings to ModalSandboxClientOptions, matching Modal's scalar request and request-and-limit tuple forms. The settings are persisted in Modal session state and forwarded through fresh and snapshot-restored sandbox creation, while omitted values continue to use Modal's defaults.

Test plan

  • UV_CACHE_DIR=/tmp/openai-agents-uv-cache uv run pytest tests/test_released_api_contract.py tests/extensions/sandbox/test_modal.py tests/sandbox/test_client_options.py tests/sandbox/test_compatibility_guards.py
  • env UV_DEFAULT_INDEX=https://pypi.org/simple bash .agents/skills/code-change-verification/scripts/run.sh

Issue number

N/A

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • If using Codex, I've run /review before submitting this PR

@Filimoa Filimoa changed the title feat: add Modal sandbox resource options feat(sandbox): add Modal sandbox resource options Aug 16, 2026
@seratch seratch added this to the 0.21.x milestone Aug 16, 2026
@seratch
seratch enabled auto-merge (squash) August 16, 2026 03:24
@seratch
seratch merged commit 3a888de into openai:main Aug 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants