Repository navigation
fix(devserver): restart a dead monitor on re-select; skip ambient reuse on forceRestart - #24764
noknowscode wants to merge 4 commits into
Conversation
…euse Refs unoplatform/uno.app-mcp#153, #148. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EVdoaKDSQpmH53dJYEV3Qv
…se on forceRestart Refresh escalates to Restart when the monitor loop has exited; Start stops a previous workspace first. Fixes unoplatform/uno.app-mcp#153; hardens #148. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EVdoaKDSQpmH53dJYEV3Qv
Refs unoplatform/uno.app-mcp#153. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EVdoaKDSQpmH53dJYEV3Qv
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24764/wasm-skia-net9/index.html |
|
The build 235840 found UI Test snapshots differences: Details
|
…ne' may silently drop its earlier arguments' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
|
The build 236055 found UI Test snapshots differences: Details
|
|
|
|
Coordination note on unoplatform/uno.app-mcp#148, which this PR lists as hardened. #148 had two symptoms, and only one belongs here:
No merge order between the two. |
GitHub Issue: unoplatform/uno.app-mcp#153 (also hardens unoplatform/uno.app-mcp#148 and #152)
PR Type:
🐞 Bugfix
What changed? 🚀
Current behavior
DevServerMonitor's loop exits on its own after 3 no-host cycles (setsNotAnUnoWorkspace,breaks) or after repeated start failures.DevServerStartedstaystrueand no event is raised.Uno.Sdk/Uno.WinUI.DevServeris not in the NuGet cache (SdkNotInCache), so the monitor dies ~30 s after starting.project.assets.jsonwrite from restore/build and an explicituno_app_select_solutionboth resolve to the same workspace:Refresh,already_selected, nothing restarts. OnlyforceRestart: truerecovers.Starttransition can be skipped byStartDevServerMonitor's start-once guard when a monitor from an earlier solution-less workspace (roots on an empty folder) is still registered.forceRestart,StartProcessre-adopts any running host registered for the same solution throughAmbientRegistry(no version check), andTerminateServerProcessdoes not wait for a killed host, so a forced restart can reuse the old host.New behavior
DevServerMonitor.IsMonitoringreports whether the loop is alive.ApplyWorkspaceResolutionAsyncescalatesRefreshtoRestartwhen the monitor loop has exited (resolved workspaces only).Startpath stops the previous workspace first.forceRestartskips AmbientRegistry re-adoption once;TerminateServerProcesswaits up to 5 s afterKill.Given_ProxyLifecycleManager.WhenSelectingCurrentSolutionAfterMonitorExited_DevServerRestarts.Risk: a forced restart can now run a second host next to an IDE-owned host for the same solution.
PR Checklist ✅
Uno.UI.DevServer.Cli.Testspassdotnet restore, thenuno_app_select_solutionon the new.slnattaches withoutforceRestartOther information ℹ️
Draft opened from a browser session; the change was written from reading
masterand has not been built locally yet.🤖 Generated with Claude Code
https://claude.ai/code/session_01EVdoaKDSQpmH53dJYEV3Qv