Repository navigation
Keep reconnected circuits alive after navigation interop timeouts - #69767
Conversation
|
Thanks for your PR, @surya3655. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
2fbe78d to
63016fc
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Recoverable disconnect timeouts currently produce exception-bearing warning telemetry that can create operational noise.
1 open finding
What changed in this PR
Prevents transient navigation interop timeouts from terminating reconnected Blazor Server circuits.
Changes:
- Treats navigation timeouts as recoverable while preserving unexpected-error handling.
- Adds deterministic reconnect test infrastructure.
- Adds unit and Selenium regression coverage.
| File | Description |
|---|---|
ServerStartup.cs |
Enables specialized test startup configuration. |
_ServerHost.cshtml |
Adds manual reconnection handling for tests. |
NavigationReconnectionStartup.cs |
Configures the reconnect scenario. |
NavigationReconnectionComponent.razor |
Provides test navigation interactions. |
NavigationReconnectionCircuitHandler.cs |
Tracks circuit connection state. |
NavigationReconnectionTest.cs |
Covers browser reconnect and failure behavior. |
RemoteNavigationManagerTest.cs |
Covers navigation outcomes and logging. |
RemoteNavigationManager.cs |
Recovers from navigation interop timeouts. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
…ore-main into 69473-navigate # Conflicts: # src/Components/Server/src/Circuits/RemoteNavigationManager.cs # src/Components/Server/test/Circuits/RemoteNavigationManagerTest.cs # src/Components/test/E2ETest/ServerExecutionTests/NavigationReconnectionTest.cs
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
/review |
There was a problem hiding this comment.
Source-only review of frozen head 8403c802c004107371116c66179eceff8eb5552b.
One advisory unresolved item is attached inline: the old/new timeout and circuit-lifetime paths are established, but the frozen evidence does not establish the target-version SignalR retained-proxy/drop behavior required to produce the live timeout trigger.
Guide completion
docs/CrossCuttingGuidance.md: complete for all in-scope source checks; runtime/test execution and security assessment were excluded by the supplied source-only policy.docs/BlazorComponentsGuidance.md: complete for all in-scope source checks; runtime/test/browser execution was excluded.
Existing feedback coverage: discussion 4256706843 identified warning-level telemetry on an earlier revision; frozen head now logs NavigationTimedOut at Debug. This deduplication is neutral and does not grade the prior review.
Unresolved: Target-version-bound SignalR source, contract, or immutable validation is missing for whether JS.BeginInvokeJS sent through the retained proxy after disconnect is silently dropped and remains unanswered after reconnection.
Discarded source concerns: location-changing cancellation does not reach this catch; unexpected interop failures still reach UnhandledException; permanent-disconnection handling follows the ended-session path; no public API, DI lifetime, resource-leak, or source-level false-pass defect was established.
Provenance and boundary: Bundle v2; merge base c7fc0077f01b1069028af41b1dd90ddc090af63f; base tip and immutable reviewer guidance d8754d1fc8751b5a8ee7e8d0d28df4052cf63e77. Proof is frozen-source-only; PR code, tests, CI, browser workflows, and samples were not executed. The target-version SignalR transport implementation/contract needed for the remaining trigger was not established by the assigned evidence. Tracked Git bytes only; symlink, submodule, and LFS targets are inert.
Generated by ASP.NET Core Pull Request Review for #69767 · copilot · gpt56 · 199.2 AIC · ⌖ 12.5 AIC · ⊞ 18.8K
Comment /review to run again
|
Copilot's local review panel found no issues to raise at this commit. |
|
✅ No documentation PR was created. Confidence that documentation is needed: 10% No docs needed: this is a bug fix with test coverage that changes only internal error handling. Documentation surfaces considered
|

Description
This change prevents a server-side Blazor circuit from being terminated when a
NavigationManager.NavigateToJS interop call times out after a transient disconnect.Previously, a navigation request or reply lost while the SignalR connection was unavailable eventually raised a
TaskCanceledException. Unless the circuit had been permanently disconnected, that exception reached the generic navigation failure path, raisedUnhandledException, and terminated a circuit that could already have reconnected.The navigation flow now:
NavigationTimedOutwarning without raisingUnhandledException;NavigationStoppedSessionEnded;The regression coverage includes:
Output
Before

After


Validation:
Fixes #69473