open-swe/tests/sandbox
Adam Moussa 6d34c42578
feat: inject extra JSON fields into sandbox create via env var (#1758)
Add SANDBOX_CREATE_EXTRA_JSON so operators can merge extra fields (e.g.
{"_internal_runtime":"v2"}) into the LangSmith sandbox-create request body.
The SDK's create_sandbox builds a fixed payload with no passthrough, so we
wrap the HTTP client's post to inject the fields on the POST /boxes request
only. Malformed JSON fails at startup validation.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
(cherry picked from commit 2238303306493ae6fcd0c2d4ab4236adf283a896)

Co-authored-by: Ramon Nogueira <ramon.nogueira@langchain.dev>
2026-07-17 16:22:38 -04:00
..
test_daytona_integration.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_e2b_integration.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_gateway.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_langsmith_sandbox_config.py feat: inject extra JSON fields into sandbox create via env var (#1758) 2026-07-17 16:22:38 -04:00
test_langsmith_sandbox_timeout.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_local_integration.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_proxy_auth.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_repo_binding_isolation.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_repo_snapshots.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_sandbox_paths.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_sandbox_recovery.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
test_stale_sandbox_creating.py refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00