Commit Graph
3 Commits
Author SHA1 Message Date
serversdownandClaude Opus 5.5 78617d47ce test(minimateplus): each strict-stream refusal has its own test; a re-poll always follows a SESSION_RESET
Review of 75d79ec / d73a27d (mutation): removing the chunk-timeout raise went
unnoticed because the TERM raise also said 'ended early', and the no-STRT,
metadata-page, mid-stream-terminator and chunk-cap raises had no test at all;
a re-poll without SESSION_RESET passed because the test double ignored it.
Each refusal is now pinned by its own message, each verified by removing it
(bytecode caching off -- same-second, same-size rewrites reuse a stale .pyc).
The strict tests use the shared replay helpers, which load either fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:52:23 -04:00
serversdownandClaude Opus 5.5 f6166b4b04 fix(minimateplus): the boot-aware first POLL resets the parser; a drained or long-trailed banner is seen
Review of d73a27d: _await_poll_or_boot no longer reset the parser and pending
frames the way _recv_one(reset_parser=True) did, so a reused protocol object
with half a frame left over failed startup (UnexpectedResponse A4 vs A5).
Restored.  Also: the banner check now runs before the tail is trimmed (a read
carrying >48 bytes after the banner lost it), and a banner caught during the
200 ms drain is reported, so startup goes straight to the re-poll loop instead
of the full timeout.  Tests for all three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:43:49 -04:00
serversdownandClaude Opus 5.5 d73a27d2e3 fix(minimateplus): a MiniMate that boots on connect is waited for, not given up on
BE9441 on a serial cable (bench, 2026-10-25) twice sent "Operating System"
~3 s after the port opened and ignored the POLL sent before it; the request
then failed at the full receive timeout (502 after 15 s on /device/info, 504
after 120 s on a download).  After a mid-download reboot it answered 8.8 s
after its banner -- the one measured readiness point.

startup()'s first POLL now stops waiting the moment the banner arrives (that
POLL will never be answered) and polls again every 2 s for up to 20 s.  Without
a banner nothing changes: a silent unit fails at the normal timeout, with no
re-polling.  Only SESSION_RESET and POLL are sent, so this is safe in front of
the change path too.

No codec, store or DB change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:17:09 -04:00