Mac in the headset: no viewer cleanup while a Show is launching; relay pump always ends

Review round 10: a Show replacing its own stream could have its new viewer
ended by the cleanup; a viewer reset left the delayed relay pending.
Verified: the relay delivers what's queued, then closes the agent side.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-28 21:11:26 +10:00
1 parent 7f769ca2f0
commit 484a50a189
3 files changed
+19 -4

No files matched your search

+3
View File
@@ -98,6 +98,9 @@ class Helpers(unittest.TestCase):
mv.shows += 1 # Show pressed during the wait: leave the new viewer alone
mv._end_viewer_browser(gen)
self.assertEqual(len(calls), 1)
mv.launching = 1 # a Show replacing its own stream is still launching
mv._end_viewer_browser(mv.shows)
self.assertEqual(len(calls), 1)
class WS: