Skip to content

v0.8.14

Choose a tag to compare

@github-actions github-actions released this 05 Mar 05:28
· 343 commits to main since this release
Fix session persistence: explicit drain + resilient recv loop

Two bugs caused sessions to die on agent reinstall despite pty-host
keeping shells alive:

1. Health-check TCP connections triggered auto-drain in _handle_client,
   consuming ring buffer data meant for the real agent connection.
   Fix: drain is now an explicit {"cmd":"drain"} command — health
   checks (ping/pong only) never touch ring buffers.

2. recv_loop finally block put None (EOF) into ALL output queues when
   TCP connection dropped, causing ManagedSession to close sessions.
   Fix: just set _connected=False. read_blocking() now reconnects
   to pty-host (3 retries) instead of returning None.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>