Repository navigation
build(deps): upgrade Microsoft.UI.Reactor to 0.1.0-preview.14 - #1376
Conversation
Reactor preview.13 moved charting, docking, markdown and DataGrid<T> out of the core package into Microsoft.UI.Reactor.Advanced. Namespaces were preserved, but the Markdown factory entry point moved to Microsoft.UI.Reactor.Advanced.Factories, so add the Advanced package (versioned in lock-step) and fully qualify the one call site. Importing the namespace instead would make the simple name Factories ambiguous with Microsoft.UI.Reactor.Factories. Reactor preview.14 raises its System.Drawing.Common floor to 10.0.11, which downgrades against the direct 10.0.9 pin here (NU1605), so advance that pin. It still overrides the vulnerable transitive 4.7.0 the pin exists for. Reactor preview.13 also grew REACTOR_POOL_001 from 12 to 41 properties, adding attached-property writes cleared by ElementPool.CleanElement. Because this repo sets TreatWarningsAsErrors, the warning surfaced as 51 build errors across 14 .Set(...) call sites. Each one is a real latent bug: those writes are discarded when the control is recycled, so an assistant image preview or a disabled picker could silently lose its state on re-render. Convert them to the equivalent fluent modifiers rather than suppressing the rule. Update three source-shape contract tests that pinned the old imperative syntax. The invariants they protect are unchanged; only the spelling moved. Validation: build.ps1 green; OpenClaw.Shared.Tests 3943 passed/32 skipped; OpenClaw.Tray.Tests 2861 passed (matches pre-bump baseline); OpenClaw.Tray.UITests 136 passed, including ReactorMarkdownTableProofTests, ReactorToolActivityProofTests and MountedReactorChatDisposalProofTests. Co-authored-by: Copilot App <[email protected]>
REACTOR_POOL_001 only covers part of what ElementPool.CleanElement actually resets. Disassembling the shipped preview.14 Reactor.dll shows CleanElement clears 83 dependency properties, including UIElement.IsHitTestVisible and a TextBlock-specific arm covering FontFamily, FontWeight, FontStyle, TextWrapping, TextAlignment, TextTrimming and IsTextSelectionEnabled, plus a direct FontSize reset. The analyzer stays silent on several of these, so the remaining .Set(...) writes were invisible to the build even after every reported site was fixed. Move those writes onto the declarative modifiers, which is the form Reactor endorses and the one the reconciler reapplies through ApplyModifiers. This also removes the escape-hatch lambda entirely at most sites. Scope note: this is a consistency and robustness change, not a proven bug fix. DescriptorHandler.Mount and .Update both call ApplySetters, so an always-present .Set(...) is normally reapplied after recycling; no user-visible failure was reproduced. Filed upstream as microsoft/microsoft-ui-reactor#1193, narrowed to the part that is verifiable: the analyzer excludes IsHitTestVisible claiming no modifier exists, while Reactor.dll publicly exposes one. Left imperative on purpose: the nested-expander block in ToolCallCardRenderer sets FontSize/MinHeight/Padding only when isNested, and a modifier would have to invent a value for the non-nested branch instead of leaving the theme default. RichTextBlock font writes are untouched because CleanElement only clears Blocks for that type. Two source-shape contract tests follow the same spelling change. Neither was weakened: selectable user prompt text and tool-card automation IDs are still asserted, through .IsTextSelectionEnabled(true) and .AutomationId(. Validation: build.ps1 green; Shared.Tests 3943 passed/32 skipped; Tray.Tests 2861 passed; Tray.UITests 136 passed. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 9, 2026, 2:15 PM ET / 18:15 UTC (Revision 6). ClawSweeper reviewWhat this changesUpgrades native chat rendering to Reactor preview.14, converts control properties to declarative modifiers, and raises the developer SDK minimum to 10.0.400. Merge readiness⛔ Blocked before merge - 4 items remain The upgrade remains useful and is absent from current main and the latest release. No concrete introduced code defect was found; current-head native proof and prerequisite upgrade evidence remain the merge blockers. Priority: P3 Review scores
Verification
How this fits togetherThe Windows companion renders chat messages, markdown, media, and tool activity through Reactor. Its build scripts prepare the SDK needed to compile that native interface. flowchart LR
A[Chat messages and tool activity] --> B[Native chat renderers]
B --> C[Reactor and Advanced markdown]
C --> D[Windows chat interface]
E[Developer SDK installation] --> F[Prerequisite checks]
F --> G[Build native application]
G --> D
Before merge
Agent review detailsSecurityNone. Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused Reactor migration and documented SDK floor, with current native captures and successful prerequisite upgrade evidence supporting the self-contained release path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is dependency maintenance, and the contributor explicitly describes the modifier conversion as robustness work rather than a proven bug fix. Is this the best way to solve the issue? Yes: the Advanced package migration and declarative modifiers fit the existing renderer, while the coordinated SDK floor avoids carrying a separate compiler package. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4c6747db3b2e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
Code review found a strictly better form for the nested-expander block. Reactor modifiers are pure with-clones, and ApplyModifiers unwinds a modifier that disappears between renders by clearing the value. So applying FontSize/MinHeight/ Padding conditionally on the element leaves them genuinely unset when the card is not nested, and correctly clears them if isNested ever flips. The previous imperative form could not clear them, because a .Set(...) that stops running leaves the last written value in place. This removes the reasoning recorded in the previous commit: the concern was that a modifier would have to invent a value for the non-nested branch, which the conditional form avoids. Also retarget two source-shape assertions that still pinned the old imperative spelling, and replace one that had started passing only by coincidence. After the composer's automation ids moved to .AutomationId(...), the generic AutomationProperties.SetAutomationId( assertion in ReactorComposer_GatesClickableControlsUntilLayoutIsUsable was satisfied solely by an unrelated context-menu call, so it no longer guarded the composer buttons it was written for. It now pins .AutomationId(automationId), the shared path those buttons actually use. Validation: build.ps1 green; Shared.Tests 3943 passed/32 skipped; Tray.Tests 2861 passed; Tray.UITests 136 passed. Co-authored-by: Copilot App <[email protected]>
Reactor preview.14 analyzers require Roslyn 5.9. Keep the repository SDK contract unchanged by supplying the matching compiler privately to the WinUI project. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
Heads-up on Reactor's analyzers raised their Roslyn floor between the version we're leaving and the one we're taking. Read straight off the shipped
What makes this worth a comment rather than a shrug is the failure mode. That fires four times — once each for For this PR in particular that would be quietly self-defeating: Two practical notes:
Net: |
Reactor preview.14 generators require Roslyn 5.9. Raise the repository SDK floor instead of carrying project-local compiler packages; release artifacts remain self-contained. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Report old SDK feature bands accurately, enforce 10.0.400 in Parallels proof hosts, and document the intentional post-layout Reactor escape hatch. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Send the feature-band check as a literal PowerShell payload so regex and version strings survive the macOS-to-Windows transport. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
Poll the strict 10.0.400 predicate after the Parallels installer reboot instead of accepting any older .NET 10 SDK. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What this changes
Upgrades the native chat surface from
Microsoft.UI.Reactor0.1.0-preview.12to0.1.0-preview.14, adapts to the Advanced package split and fluent modifier guidance, and raises the repository build prerequisite to .NET SDK 10.0.400 or newer because preview.14's analyzers require Roslyn 5.9.Implementation
Microsoft.UI.Reactorto0.1.0-preview.14Microsoft.UI.Reactor.Advanced0.1.0-preview.14for markdown, which adds transitiveMicrosoft.Graphics.Win2D1.4.0System.Drawing.Commonpin to10.0.11to satisfy Reactor's new floor while continuing to override the vulnerable old transitive versionMicrosoft.UI.Reactor.Advanced.Factories.MarkdownLoaded/SizeChangedsubscriptionsglobal.jsonto the .NET 10.0.400 feature band withlatestFeatureroll-forwardbuild.ps1,scripts/setup-dev.ps1, developer docs, and Parallels proof provisioning require .NET SDK 10.0.400 or newerThe permanently disabled MSIX job still contains its old exact SDK pin. It must be updated if that
if: falselane is ever re-enabled; it does not affect active CI, Inno/portable release artifacts, or this PR's build.Required proof pools
windows-winui-interactive: contributor screenshots at the original rendering head show the real isolated native chat surface, nested tool cards, composer glyphs, markdown table rendering, and redaction behavior. Current maintainer commits only align the build SDK/prerequisite and do not alter the rendered output.Validation
Current head:
8afdcada.Current
mainmerge validation with .NET SDK10.0.401:.\build.ps1: passedscripts\test-ci-workflow-contract.ps1: passeddotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,943 passed, 32 skippeddotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,865 passeddotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -p:Platform=x64: 136 passedbuild.ps1 -CheckOnly: recognizes SDK 10.0.401 and the 10.0.400 minimumscripts\setup-dev.ps1 -CheckOnly: recognizes SDK 10.0.401 and the 10.0.400 minimum.NET SDK 10.0.400 or newer not foundinstead of incorrectly reporting that dotnet is absentbash -n scripts\parallels-windows-vm.sh: passedTruewith SDK 10.0.401 andFalsefor an old-band-only simulated listResolved package graph:
Microsoft.UI.Reactor0.1.0-preview.14Microsoft.UI.Reactor.Advanced0.1.0-preview.14Microsoft.Graphics.Win2D1.4.0System.Drawing.Common10.0.11Microsoft.WindowsAppSDK.WinUI2.3.6Microsoft.Net.Compilers.ToolsetpackageReal behavior proof
Contributor current-rendering proof at
a8790d35remains applicable because later commits only change compiler/prerequisite selection:OpenClaw.Tray.WinUI.exerendered grouped activity cards, nested tool expanders, the full composer, Fluent glyphs, picker chevrons, and monospace tool input.ReactorChatTimeline.BuildSafeMarkdownrendered a GFM table and inert literal-pipe code fence through the relocated Advanced markdown factory.ChatComposerInputand validated the chat page after automation properties moved to modifiers.Current-head local proof additionally confirms all 136 WinUI tests pass after a fresh preview.14 restore with the new SDK floor.
Not verified / blocked:
Security impact
No permissions, credentials, network calls, command surfaces, or data-access behavior changed.
Microsoft.Graphics.Win2Dis the only new native transitive dependency; it is resolved at 1.4.0, included by the Advanced package, and the current dependency audit reports no known vulnerabilities.