"const session = await modelFactory.create({ monitor: monitorConfig, signal: myAbortController.signal });
and then I call "myAbortController.abort();" to end the download after a user gesture.
What I found is that if I just close the browser in the middle of a download (as a user might do) then retrying later gets stuck on 0% , presumably because there was no cleanup when the browser closed. Something that seems to unblock this frozen 0% problem is if I go into 'chrome://components' (which now shows the model status stuck on 'downloading') and I press the 'Update' button' then a subsequent download doesn't get stuck on 0% (but I can't expect the average user to do this).
So what I'm trying to do here is give the user a clean way to terminate the download leaving everything in a state which allows the download to be retried later. Any thoughts on this?