Repository navigation
Fix Policy Diagnostics Command to Prevent Indefinite Wait - #330030
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Prevents Policy Diagnostics from hanging on Agent Host managed-settings probes.
Changes:
- Adds layered probe timeouts and stage-specific errors.
- Shows progress while generating diagnostics.
- Bypasses connection/authentication delays and adds SDK probe tests.
Show a summary per file
| File | Description |
|---|---|
developerActions.ts |
Adds progress UI and report-level timeout. |
copilotAgent.ts |
Adds SDK authentication and staged timeouts. |
localAgentHostService.ts |
Avoids waiting for protocol readiness. |
copilotAgent.test.ts |
Tests authentication forwarding and timeout behavior. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Balanced
joshspicer
enabled auto-merge (squash)
August 10, 2026 18:17
Ben Villalobos (benvillalobos)
approved these changes
Aug 10, 2026
Misha Damjanic (mdamjanic7)
added a commit
to mdamjanic7/pihub
that referenced
this pull request
Aug 24, 2026
…n (temporary core patch) Upstream microsoft#329839 (bba5e40, 2026-08-17 sync) made _getManagementService async resolving to the ProxyChannel.toService proxy; _callManagement awaits it, so JS treats the proxy as a thenable — .then is proxied as an RPC whose function arguments serialize to zero-length objects. The agent host fails to deserialize the frame (SyntaxError: Unexpected end of JSON input on stderr), never responds, and the awaited call hangs forever (Compact Conversation spinner, 100% repro). Split the readiness wait (void) from the proxy accessor (sync) so the proxy never travels through promise resolution. Superseded by upstream microsoft#330030 / microsoft#330567 (bd094b5) in the deferred slice — drop on that merge and re-home compactSession onto the synchronous accessor. Ledger: docs/pihub-patches.md.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This pull request addresses the issue where the
Developer: Policy Diagnosticscommand fails to open the editor due to an indefinite wait caused by the Agent Host managed-settings probe.Changes Made:
Validation:
This fix resolves the issue reported in issue #329973 and improves the overall responsiveness of the Policy Diagnostics feature.