Repository navigation
Fix Bluetooth motor disconnect recovery - #60
Merged
Merged
Conversation
Preserve unconfirmed motor state while releasing failed Bluetooth connections and allowing explicit recovery. Revoke browser lease ownership on disconnect and cover reconnect behavior with regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preflight the exact serve arguments without opening connections, rebuild stale artifacts through setup.cmd, and fail explicitly if rebuilt arguments remain incompatible. Cover launcher recovery and align Windows integration test timeouts with their bounded subprocesses. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Show the existing 0.0.0.0 bind in startup output, document LAN access and firewall requirements, and assert the launcher passes the all-interface listen address. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Request administrator approval only for the firewall helper, persist an application-scoped TCP rule for the selected HTTP/HTTPS ports on Private local-subnet networks, and stop startup on configuration failure. Cover opt-in argument forwarding and scoped rule creation/update without modifying the host firewall in tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use an empty mode mask before any heartbeat instead of the generated SAFETY_ARMED default, preventing no-hardware experiment stops from entering vehicle safe-off. Add backend and no-hardware shutdown regressions and document initial unknown state semantics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Derive a validated local DNS hostname from the OS computer name for wildcard listeners, keeping certificate identity stable across DHCP address changes. Use the same hostname for phone-camera URLs and QR codes while retaining explicit IP listeners. Add hostname-verified TLS and URL regressions, update launcher output, and document local-name resolution requirements. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
cargo test -p linkhub motor::tests— 20 passed.npm test -- tests/motor-panel.test.ts— 20 passed.npm run build— passed (existing bundle-size warning).Offline motor-session analysis changes are intentionally excluded.
Launcher follow-up
Validation: all 35 Windows bootstrap tests pass; Ruff and Pyright pass. A real run_linkhub_ui.cmd auto launch served HTTP 200; no serial device was available.
Opt-in firewall configuration
Validation: all 39 Windows bootstrap/firewall tests pass; Ruff and Pyright pass. Native Windows PowerShell firewall helper dry-run passes. No live firewall rules were changed; the initial read-only inspection was incomplete due to access denial.
No-hardware experiment shutdown
Validation: 14 MAVLink tests and 25 experiment/motor UI tests pass; UI type-check/build and release executable build pass. End-to-end release-server + production CLI test saved a no-hardware experiment in 4.11 seconds, with a real mavlog.json and zero transmitted MAVLink messages. The workstation release executable has been rebuilt; the user's server was not restarted.
Default hostname HTTPS identity
Validation: all 91 backend library tests and 10 focused Windows launcher tests pass; release executable rebuilt. A real request using OS .local resolution and curl with the generated certificate as its explicit trust anchor validated hostname and HTTPS successfully, without disabling certificate verification.