Repository navigation
fix: address review feedback on diagnostics multi-device discovery - #4
Merged
Merged
Conversation
…e storage, request_impl refactor, new tests Co-authored-by: mad201802 <45396189+mad201802@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix diagnostics multi device discovery
fix: address review feedback on diagnostics multi-device discovery
Mar 3, 2026
mad201802
marked this pull request as ready for review
March 3, 2026 23:21
mad201802
added a commit
that referenced
this pull request
Mar 3, 2026
* feat: enhance diagnostics discovery with direct device querying and dashboard updates * fix: address review feedback on diagnostics multi-device discovery (#4) * Initial plan * fix: address review feedback - check enable_diagnostics return, stable storage, request_impl refactor, new tests Co-authored-by: mad201802 <45396189+mad201802@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mad201802 <45396189+mad201802@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+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.
Addresses four code review issues from the diagnostics multi-device discovery PR: a silent failure path in
desktop_peer, a use-after-free indiag_scanner, duplicated request logic inruntime.hpp, and missing test coverage for the explicit-targetrequestoverload.Changes
desktop_peer.cpp: Checkenable_diagnostics()return value; log to stderr on failure instead of silently continuing without diagnostics.diag_scanner.cpp: Changedevicesfromstd::vectortostd::deque.vector::push_backcan reallocate, invalidating&devpointers stored as callback context for in-flight async requests.deque::push_backguarantees pointer stability for existing elements.runtime.hpp: Extract privaterequest_impl(const Addr& target, ...)helper; both publicrequestoverloads delegate to it, eliminating duplicated allocate/build/send logic.test_runtime.cpp: Add two tests for the explicit-targetrequestoverload —ClientRequest_ExplicitTarget_SendsWithoutSD(sends to target when SD has no provider) andClientRequest_ExplicitTarget_ResponseCompletesCallback(response from target correctly fires callback).🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.