Repository navigation
Studio macOS: force anyio<4.14.0 via uv override - #6575
Conversation
The macOS-arm studio venv still installs anyio 4.14.0 despite the constraints.txt cap from #6546. mlx-vlm / mlx-lm pull anyio>=4.14, which conflicts with the anyio<4.14.0 constraint; a uv -c constraint loses that conflict so 4.14.0 gets installed, reintroducing the cancel-scope RuntimeError on Python 3.13 (#6483). UV_OVERRIDE is already applied on macOS-arm via overrides-darwin-arm64.txt and a uv override wins the conflict, so cap anyio there too. macOS-arm now resolves anyio 4.13.0.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Code Review
This pull request adds an override constraint for anyio<4.14.0 in overrides-darwin-arm64.txt to resolve a dependency conflict on macOS ARM where mlx-vlm or mlx-lm pull in anyio>=4.14, which breaks cancel scopes on Python 3.13. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
What
Force
anyio<4.14.0on the macOS-arm studio venv by adding it to the uv override file.Why
#6546 pinned
anyio<4.14.0inconstraints.txtto avoid the Python 3.13 cancel-scope RuntimeError (#6483). On macOS-arm the pin is not taking effect: the studio venv still installs anyio 4.14.0 and the server 500s on the first httpx-backed request (cannot import name 'TaskHandle' from anyio._core._tasks, surfaced viaroutes/inference.py::_openai_passthrough_non_streaming).Root cause:
mlx-vlm/mlx-lmpullanyio>=4.14, which conflicts with the<4.14.0cap. A uv-cconstraint loses a hard-requirement conflict (it errors or yields 4.14.0), while a uv override wins it.UV_OVERRIDEis already applied on macOS-arm viaoverrides-darwin-arm64.txt, but it did not list anyio.Change
Add
anyio<4.14.0tosingle-env/overrides-darwin-arm64.txt. macOS-arm now resolves anyio 4.13.0; Linux/Windows are unaffected (they already honor the constraints.txt cap). This does not change intent - it makes the existing<4.14pin actually stick on macOS-arm.Validation
Verified with uv that an override forces
anyio<4.14.0even against an explicitanyio==4.14.0request (resolves to 4.13.0), whereas the same as a-cconstraint is a hard conflict.