Skip to content

Reset iTach TCP session after IR timeouts#4

Merged
sickkick merged 1 commit into
mainfrom
cursor/surface-device-command-timeouts-9dea
Jun 5, 2026
Merged

Reset iTach TCP session after IR timeouts#4
sickkick merged 1 commit into
mainfrom
cursor/surface-device-command-timeouts-9dea

Conversation

@sickkick
Copy link
Copy Markdown
Collaborator

@sickkick sickkick commented Jun 5, 2026

Summary

  • Reset the iTach TCP client connection when an IR sendir command times out or exhausts busy retries without completeir
  • Add a regression test that simulates a stale IR TCP session and verifies the next command reconnects without requiring an integration reload

Testing

  • python3 -m pytest tests/test_client.py tests/test_pronto.py
  • python3 -m pytest tests/test_client.py tests/test_pronto.py tests/test_relay_serial.py tests/test_serial_session.py tests/test_device_util.py tests/test_remote.py tests/test_serial_commands_json.py

Notes

  • python3 -m pytest tests/ is blocked in this environment because homeassistant is not installed; the non-HA protocol/helper subset passes.
Open in Web Open in Cursor 

Co-authored-by: Michael Shaffer <sickkick40@gmail.com>
@cursor cursor Bot force-pushed the cursor/surface-device-command-timeouts-9dea branch from 37aef5b to 7e6af95 Compare June 5, 2026 11:34
@sickkick sickkick marked this pull request as ready for review June 5, 2026 11:35
@sickkick sickkick merged commit 3c376e9 into main Jun 5, 2026
2 checks passed
@sickkick sickkick deleted the cursor/surface-device-command-timeouts-9dea branch June 5, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant