Spaces:
Running on Zero

Keep Studio Reset attached to the active direct run

#13

I replayed the five Studio presets in Chrome using saved Apple MPS results and a local HTTP server. I started a second run after the first reported completion but before its response closed. Reset failed to cancel the second run in all five normal closures and all five disconnects. The disconnects also interrupted the second run in the UI. The second result reappeared after Reset in all ten replays.

The fix only lets the current direct stream update the UI or clear its abort controller. Reset canceled all ten runs, no canceled result reappeared, and all ten later retries displayed the expected output. Both regression cases fail on main and pass with the patch.

🤖 Generated with Claude Code

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment