Skip to content

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 11 Jun 03:40
· 9 commits to main since this release
779d0f4
v1.3.1: Fix prompt text typed twice after a server restart (#12)

MarcoServer.start() subscribed to the websocket service's message and
client-connection streams on every start without cancelling the
previous subscription (the broadcast controllers outlive a stop), so
each restart added another handler: one press then typed the prompt
text twice, ran commands twice and flipped toggles straight back.

Subscriptions are now stored, cancelled in stop(), and defensively
re-created per start. Covered by an end-to-end regression test that
boots a real MarcoServer, restarts it, presses a prompt button over a
raw WebSocket and asserts exactly one commandResult arrives (verified
red without the fix: two results).

Version 1.3.1+3.

Co-authored-by: Claude <noreply@anthropic.com>