mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
**Problem** Like #9848, some paths still swallow InterruptedException. The NetworkTerminal request methods block on queue.take, so an interrupted task thread gets a default value back and loses its interrupt flag. removeChannel still uses put, and the client's boot read thread ignores the interrupt meant to stop it. **Solution** Restore the flag in NetworkTerminal (in withThread only while the terminal is open), use add in removeChannel, and stop the read thread on interrupt. Add tests to NetworkChannelSpec. Generated-by: Claude Opus 5.5 Co-authored-by: Claude Opus 5.5 <[email protected]>