Skip to content

Commit 13f31cb

Browse files
karkarlCopilot
andcommitted
fix(chat): scope Reactor diagnostics
Co-authored-by: Copilot App <[email protected]>
1 parent 6f6116a commit 13f31cb

3 files changed

Lines changed: 74 additions & 6 deletions

File tree

‎.editorconfig‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,70 @@ dotnet_naming_style.s_camel_case.required_prefix = s_
138138
# source files and suppress it only for the generated type-info file.
139139
[**/XamlTypeInfo.g.cs]
140140
dotnet_diagnostic.CS0612.severity = none
141+
142+
# Reactor analyzers apply project-wide, but the existing imperative WinUI/XAML
143+
# surfaces are not Reactor render trees. Keep their compatibility exceptions
144+
# local so new Reactor-owned surfaces remain checked by default.
145+
[src/OpenClaw.Tray.WinUI/A2UI/**/*.cs]
146+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
147+
148+
[src/OpenClaw.Tray.WinUI/App.xaml.cs]
149+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
150+
151+
[src/OpenClaw.Tray.WinUI/Helpers/**/*.cs]
152+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
153+
154+
[src/OpenClaw.Tray.WinUI/Helpers/InstanceManagementControls.cs]
155+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
156+
157+
[src/OpenClaw.Tray.WinUI/Pages/**/*.cs]
158+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
159+
160+
[src/OpenClaw.Tray.WinUI/Services/**/*.cs]
161+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
162+
163+
[src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs]
164+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
165+
166+
[src/OpenClaw.Tray.WinUI/Windows/**/*.cs]
167+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
168+
169+
[src/OpenClaw.Tray.WinUI/Chat/ReactorChatHostExtensions.cs]
170+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
171+
172+
[src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs]
173+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
174+
175+
[src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml.cs]
176+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
177+
178+
[src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs]
179+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
180+
181+
[src/OpenClaw.Tray.WinUI/Pages/ChannelsPage.xaml.cs]
182+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
183+
184+
[src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs]
185+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
186+
187+
[src/OpenClaw.Tray.WinUI/Pages/DebugPage.xaml.cs]
188+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
189+
190+
[src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml.cs]
191+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
192+
193+
[src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs]
194+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
195+
196+
[src/OpenClaw.Tray.WinUI/Windows/ChatWindow.xaml.cs]
197+
dotnet_diagnostic.REACTOR_DIALOG_001.severity = none
198+
199+
[src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs]
200+
dotnet_diagnostic.REACTOR_THEME_004.severity = none
201+
202+
[src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs]
203+
dotnet_diagnostic.REACTOR_A11Y_001.severity = none
204+
205+
[src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs]
206+
dotnet_diagnostic.REACTOR_A11Y_001.severity = none
207+
dotnet_diagnostic.REACTOR_THEME_004.severity = none

‎src/OpenClaw.Tray.WinUI/Chat/ReactorChatTimeline.cs‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ private static Element BuildEmpty(ReactorTimelineRow row)
333333
{
334334
Image("ms-appx:///Assets/Square44x44Logo.targetsize-256_altform-unplated.png")
335335
.Size(64, 64)
336+
.AutomationName("OpenClaw")
336337
.HAlign(HorizontalAlignment.Center),
337338
Text(
338339
LocalizedOrDefault("Chat_ZeroState_WelcomeTitle", "Welcome to OpenClaw"),
@@ -518,7 +519,9 @@ private static Element BuildAssistantAvatarSlot(ReactorTimelineRow row)
518519
: identity?.Emoji;
519520
Element content = !string.IsNullOrWhiteSpace(glyph)
520521
? Text(glyph, 16, FontWeights.SemiBold, "TextFillColorSecondaryBrush").Center()
521-
: Image("ms-appx:///Assets/Square44x44Logo.targetsize-256_altform-unplated.png").Size(36, 36);
522+
: Image("ms-appx:///Assets/Square44x44Logo.targetsize-256_altform-unplated.png")
523+
.Size(36, 36)
524+
.AutomationName(identity?.DisplayName ?? "Assistant");
522525

523526
return Border(content)
524527
.Size(36, 36)
@@ -706,7 +709,7 @@ private static Element BuildAttachment(ChatAttachmentPreview attachment)
706709
var glyphBackground = Border(glyph)
707710
.Size(32, 32)
708711
.CornerRadius(6)
709-
.Background(new SolidColorBrush(Color.FromArgb(0x30, 0xFF, 0xFF, 0xFF)));
712+
.Background(Theme.Ref("SubtleFillColorSecondaryBrush"));
710713
var name = Text(
711714
attachment.Name,
712715
13,
@@ -724,8 +727,8 @@ private static Element BuildAttachment(ChatAttachmentPreview attachment)
724727
.Padding(8, 6, 12, 6)
725728
.CornerRadius(6)
726729
.BorderThickness(1)
727-
.BorderBrush(new SolidColorBrush(Color.FromArgb(0x40, 0xFF, 0xFF, 0xFF)))
728-
.Background(new SolidColorBrush(Color.FromArgb(0x20, 0xFF, 0xFF, 0xFF)))
730+
.BorderBrush(Theme.Ref("ControlStrokeColorDefaultBrush"))
731+
.Background(Theme.Ref("SubtleFillColorSecondaryBrush"))
729732
.AutomationName(attachment.Name);
730733
}
731734

‎src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@
9999
</ItemGroup>
100100

101101
<PropertyGroup>
102-
<!-- Existing XAML surfaces are not Reactor render trees. Enable these rules as those surfaces migrate. -->
103-
<NoWarn>$(NoWarn);REACTOR_A11Y_001;REACTOR_A11Y_002;REACTOR_DIALOG_001;REACTOR_THEME_004</NoWarn>
104102
<OpenClawRepoRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\'))</OpenClawRepoRoot>
105103
<OpenClawSetupDefaultConfig>$(OpenClawRepoRoot)src\OpenClaw.SetupEngine\default-config.json</OpenClawSetupDefaultConfig>
106104
<!-- RID-derived arch for tools/mxc/<arch>/wxc-exec.exe. Falls back to x64

0 commit comments

Comments
 (0)