piker/ai/prompt-io/opencode/20260901T024235Z_e09e306a_p...

1.6 KiB

Prompt

Address the Tuicr review by separating generic websocket reconnect changes from Binance-specific work and testing the real reconnect task hierarchy rather than a reimplementation.

Response summary

Preserves structured cancellation and safe first-handshake retries in _web_bs. Adds three focused regressions in a dedicated websocket test module and packages them as an independent commit boundary.

Files changed

  • piker/data/_web_bs.py - restart handled handshake failures and let cancellation bypass the reconnect throttle.
  • tests/test_websocket.py - exercise real reconnect startup, retry, and cancellation task paths with controlled transport boundaries.
  • ai/prompt-io/opencode/20260901T024235Z_e09e306a_prompt_io.raw.md
    • retain the review prompt, generated-code summary, and verification.
  • ai/prompt-io/opencode/20260901T024235Z_e09e306a_prompt_io.md - record structured provenance for the generic reconnect boundary.

Human edits

The user identified that these changes were generic rather than Binance-specific, required a separate commit and test module, requested coverage of the real reconnect hierarchy, and corrected code prose to refer to trio consistently. A follow-up review required the production code to explain why trio.Cancelled bypasses the broad reconnect-error handler and cite the regression which audits that teardown invariant.