From 4daf53bb97570d7ae445ee9929b0aad2b06ba7f0 Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Mon, 30 Nov 2026 22:20:41 -0800 Subject: [PATCH] fix(modal): cap modal below 1.7, which removed the SDK's only way onto Modal's private network modal 1.7.0 removed Sandbox._experimental_create, the call that put a sandbox on i6pn, Modal's private network, and with it the SDK's i6pn parameter for sandboxes; Sandbox.create has none. The Modal provider creates every private-network container with it (a gateway's MCP servers on Modal containers), so a fresh install, which took 1.7.0, failed those creates with an AttributeError. The lock already pins 1.6.3; the cap keeps an unlocked install on 1.6.x. Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4a997ab90..7e120b1a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dependencies = [ "pyyaml>=6.0", "starlette>=0.40", # the local grant server "uvicorn>=0.47", # 0.47 adds ssl_context_factory, how the local grant server gets its TLS context - "modal>=1.6.3", + "modal>=1.6.3,<1.7", # 1.7.0 removed Sandbox._experimental_create, the only way the SDK put a sandbox on Modal's private network (i6pn), with no public replacement "e2b~=2.46.4", # AsyncSandbox/AsyncTemplate APIs validated against the 2.46 line "fastapi>=0.110", # the explorer, agent-env up "tzdata>=2024.1", # sync_env_clock reads a task's timezone on a worker image with no system zone files diff --git a/uv.lock b/uv.lock index 63b7eefec..464ffe09e 100644 --- a/uv.lock +++ b/uv.lock @@ -245,7 +245,7 @@ requires-dist = [ { name = "jsonschema", specifier = ">=4.20" }, { name = "litellm", specifier = ">=1.104.0,<1.107" }, { name = "mcp", specifier = ">=1.25,<2" }, - { name = "modal", specifier = ">=1.6.3" }, + { name = "modal", specifier = ">=1.6.3,<1.7" }, { name = "moto", marker = "extra == 'dev'", specifier = ">=5.0.0" }, { name = "nemo-gym", marker = "python_full_version >= '3.13.14' and extra == 'nemo-gym'", specifier = ">=0.7.0rc0" }, { name = "omegaconf", marker = "python_full_version >= '3.13.14' and extra == 'nemo-gym'", specifier = ">=2.3" },