unsloth/studio
Daniel Han 7698667162 studio: make SecurityHeadersMiddleware pure ASGI to fix stuck SSE streams
SecurityHeadersMiddleware subclassed Starlette BaseHTTPMiddleware, which wraps
streaming responses in its own anyio task group. On the /v1/chat/completions SSE
stream this broke request.is_disconnected(), so GGUF generation was never
aborted on a client disconnect (the GPU stayed pinned at 100% and the UI hung on
"Generating"), and it raised "Attempted to exit a cancel scope that isn't the
current task's current cancel scope" mid-stream.

Convert it to a pure ASGI middleware that edits headers on http.response.start
and forwards the receive channel untouched, matching LoggingMiddleware. Response
headers are unchanged. Adds regression tests.
2026-06-17 12:11:18 +00:00
..
backend studio: make SecurityHeadersMiddleware pure ASGI to fix stuck SSE streams 2026-06-17 12:11:18 +00:00
frontend Studio: HTML canvas cards in chat with auto-render, a Code view, and visible diffusion code (#6374) 2026-06-16 17:38:42 -07:00
src-tauri feat(studio): Hub + Download Manager (#5916) 2026-06-09 04:11:24 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py Studio: don't silently fall back to a CPU prebuilt on NVIDIA Linux GPU hosts (#6310) 2026-06-14 02:06:31 -03:00
install_python_stack.py studio: select torchao version from the installed torch (#6400) 2026-06-17 04:09:40 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
package-lock.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
package.json ci: advisory lockfile supply-chain audit (no install-script changes) (#5604) 2026-05-19 05:56:56 -07:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 Make the Studio installers (sh + ps1) resilient to transient uv download failures (#6281) 2026-06-16 03:48:01 -07:00
setup.sh Make the Studio installers (sh + ps1) resilient to transient uv download failures (#6281) 2026-06-16 03:48:01 -07:00
Unsloth_Studio_Colab.ipynb Fix/studio colab proxy and iframe - Unsloth Studio not loading in Colab (iframe "refused to connect" and wrong URL) (#5844) 2026-05-28 23:54:48 -07:00