Skip to content

[Windows] Fixed : Switch control default width issue#30538

Merged
kubaflo merged 4 commits intodotnet:inflight/currentfrom
Tamilarasan-Paranthaman:fix-28901
Mar 21, 2026
Merged

[Windows] Fixed : Switch control default width issue#30538
kubaflo merged 4 commits intodotnet:inflight/currentfrom
Tamilarasan-Paranthaman:fix-28901

Conversation

@Tamilarasan-Paranthaman
Copy link
Copy Markdown
Member

@Tamilarasan-Paranthaman Tamilarasan-Paranthaman commented Jul 10, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Root Cause of the issue

  • The native WinUI ToggleSwitch control defines a default MinWidth of 154 in its style, likely to accommodate the OnContent and OffContent values supported in WinUI. However, since .NET MAUI does not support displaying these contents, the default minimum width is unnecessary. As a result, the control always reserves that space, leading to unnecessary space usage in .NET MAUI.

Description of Change

  • The native ToggleSwitch's minimum width is now set based on the MinimumWidthRequest value provided by the MAUI Switch view. Since MAUI does not support OnContent and OffContent, the default width is unnecessary. This change ensures the control's width reflects the actual layout requirement, resolving the unwanted spacing issue.

Reference

Issues Fixed

Fixes #28901
Fixes #30273
Fixes #10107

Tested the behaviour in the following platforms

  • iOS
  • Mac
  • Android
  • Windows

Screenshot

Before Fix After Fix
Before-Fix.mp4
After-Fix.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jul 10, 2025
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Hey there @@Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jul 10, 2025
@bronteq
Copy link
Copy Markdown

bronteq commented Jul 10, 2025

This is an old bug, thanks to finally address it!
See also this #10107
@sheiksyedm

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@Tamilarasan-Paranthaman Tamilarasan-Paranthaman marked this pull request as ready for review July 15, 2025 10:52
Copilot AI review requested due to automatic review settings July 15, 2025 10:52
@Tamilarasan-Paranthaman Tamilarasan-Paranthaman requested a review from a team as a code owner July 15, 2025 10:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue with Switch control sizing on Windows where the control was reserving unnecessary space due to WinUI's default MinWidth of 154 pixels, which was intended for OnContent/OffContent that .NET MAUI doesn't support.

  • Overrides the native ToggleSwitch MinWidth based on MAUI's MinimumWidth property
  • Removes unnecessary column spacing in the ToggleSwitch template that was reserved for unsupported content
  • Adds UI tests to verify the fix works correctly

Reviewed Changes

Copilot reviewed 5 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Core/src/Platform/Windows/SwitchExtensions.cs Adds UpdateMinWidth extension method to set ToggleSwitch MinWidth based on MAUI view's MinimumWidth
src/Core/src/Handlers/Switch/SwitchHandler.cs Maps MinimumWidth property to the new handler method for Windows platform
src/Core/src/Handlers/Switch/SwitchHandler.Windows.cs Implements MinimumWidth mapping and removes unnecessary column spacing from ToggleSwitch template
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28901.cs Adds UI test to verify Switch control sizing behavior
src/Controls/tests/TestCases.HostApp/Issues/Issue28901.cs Creates test page with Switch controls to demonstrate the sizing fix

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/rebase

@bronteq
Copy link
Copy Markdown

bronteq commented Sep 26, 2025

any news on this issue?

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/rebase

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@espenrl
Copy link
Copy Markdown
Contributor

espenrl commented Nov 7, 2025

FYI this works great: #28901 (comment)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 9, 2025

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 30538

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 30538"

@MauiBot
Copy link
Copy Markdown
Collaborator

MauiBot commented Mar 21, 2026

🤖 AI Summary

📊 Expand Full Reviewa3ba803 · Added Windows and Mac snapshots
🔍 Pre-Flight — Context & Validation

Issue: #28901 - Switch control shows a big end margin.
Related Issues: #30273 - [Windows] Switch HorizontalOptions="End" not working; #10107 - Switch control on Windows ignores layout and align options
PR: #30538 - [Windows] Fixed : Switch control default width issue
Platforms Affected: Windows
Files Changed: 3 implementation, 12 test/assets

Key Findings

  • The linked issues all describe the same Windows-specific Switch layout problem: the native WinUI ToggleSwitch reserves extra width and does not honor MAUI layout/alignment expectations.
  • The PR description attributes the gap to WinUI's default MinWidth of 154, which exists for OnContent/OffContent that MAUI does not expose.
  • The PR changes are concentrated in the Windows SwitchHandler/SwitchExtensions plus a new issue page and UI test (Issue28901) with platform snapshots.
  • Related issue comments add two important edge cases: HorizontalOptions="End" alignment on Windows ([Windows] Switch HorizontalOptions="End" not working #30273) and size/alignment constraints such as width/height requests being ignored or clipped (Switch control on Windows ignores layout and align options #10107).
  • Community feedback on Switch control shows a big end margin. #28901 points to a simple workaround (PlatformView.MinWidth = 0), which broadly aligns with the PR's minimum-width override strategy.
  • PR discussion did not reveal any unresolved human review concerns; the visible inline feedback came from the Copilot reviewer and was style-oriented (magic constants / TODO wording), and those threads are resolved.
  • No prior PRAgent review comment with phase markers was found in the PR discussion.

File Classification

  • Fix files:
    • src/Core/src/Handlers/Switch/SwitchHandler.Windows.cs
    • src/Core/src/Handlers/Switch/SwitchHandler.cs
    • src/Core/src/Platform/Windows/SwitchExtensions.cs
  • Test code:
    • src/Controls/tests/TestCases.HostApp/Issues/Issue28901.cs
    • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue28901.cs
  • Snapshot assets:
    • Android/macOS/iOS/Windows snapshot image updates under src/Controls/tests/TestCases.*.Tests/snapshots/

Edge Cases From Issue / PR Discussion

  • Switch inside horizontal layouts should not reserve excess trailing space.
  • HorizontalOptions="End" should right-align the control on Windows.
  • Historical reports mention width/height requests and clipping behavior on Windows; these remain relevant when evaluating whether the fix is broad enough.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #30538 Override WinUI ToggleSwitch.MinWidth from MAUI MinimumWidth, remove unused template spacing on load, and cover with Issue28901 UI test/snapshots PENDING (Gate) SwitchHandler.Windows.cs, SwitchHandler.cs, SwitchExtensions.cs, Issue28901 test files Original PR

🚦 Gate — Test Verification

Gate Result: PASSED

Result: PASSED

Platform: windows
Mode: Full Verification

  • Tests FAIL without fix:
  • Tests PASS with fix:

Evidence

  • Issue28901.VerifySwitchControlSize() failed against the broken baseline with a screenshot diff (VerifySwitchControlSize.png, 2.61% difference).
  • The same test passed with the PR fix restored.
  • Verification details were captured in CustomAgentLogsTmp/PRState/30538/PRAgent/gate/verify-tests-fail/verification-report.md.

🔧 Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 try-fix Set MinWidth = 0 in ConnectHandler, collapse OffContentPresenter/OnContentPresenter, and let columns auto-size FAIL SwitchHandler.Windows.cs Functional but missed the existing screenshot baseline by 2.61%
2 try-fix Set MinWidth = 0 in Loaded after base mapping, and zero the spacing column there PASS SwitchHandler.Windows.cs Smallest passing alternative, but likely overrides explicit user MinimumWidth values
3 try-fix Force template/layout compaction at connect-time using geometry/template parts FAIL SwitchHandler.Windows.cs, SwitchExtensions.cs Compile/API-surface blockers made the approach non-viable
8 try-fix Override WinUI theme resources such as ToggleSwitchThemeMinWidth / spacing margins FAIL SwitchHandler.Windows.cs, SwitchExtensions.cs Built, but caused runtime instability during the Windows test run
9 try-fix Apply a MAUI-specific compact WinUI ToggleSwitch style/control template PASS WinUI style XAML + handler/style wiring Works, but copies a large WinUI template and adds maintenance burden
10 try-fix Subclass ToggleSwitch, move spacing fix into template hook, and preserve explicit minimums in subclass logic FAIL SwitchHandler.Windows.cs, SwitchHandler.cs, SwitchExtensions.cs Invalid because WinUI ToggleSwitch is sealed
PR PR #30538 Override WinUI ToggleSwitch.MinWidth from MAUI MinimumWidth, remove unused template spacing on load, and cover with Issue28901 UI test/snapshots ✅ PASSED (Gate) SwitchHandler.Windows.cs, SwitchHandler.cs, SwitchExtensions.cs, Issue28901 test files Original PR

Cross-Pollination

Model Round New Ideas? Details
claude-opus-4.6 1 Yes MAUI-specific WinUI style/control-template path
claude-sonnet-4.6 1 No NO NEW IDEAS
gpt-5.3-codex 1 Yes Theme-resource override for min width / spacing
gemini-3-pro-preview 1 Yes Theme-resource override through WinUI style/binding system
claude-opus-4.6 2 No NO NEW IDEAS
claude-sonnet-4.6 2 No NO NEW IDEAS
gpt-5.3-codex 2 Yes Subclass + template callback + explicit-minimum preservation
gemini-3-pro-preview 2 No NO NEW IDEAS
claude-opus-4.6 3 No NO NEW IDEAS
claude-sonnet-4.6 3 No NO NEW IDEAS
gpt-5.3-codex 3 No NO NEW IDEAS
gemini-3-pro-preview 3 No NO NEW IDEAS

Exhausted: Yes
Selected Fix: PR #30538 It passes the gate, preserves explicit MinimumWidth semantics via a switch-specific mapper, avoids the maintenance burden of a copied WinUI template, and is more robust than the smaller but behavior-risky loaded-only alternative.


📋 Report — Final Recommendation

Final Recommendation: APPROVE

Result: PASSED
Final Recommendation: APPROVE

Phase Status

Phase Status Notes
Pre-Flight COMPLETE Windows-only Switch sizing/alignment issues linked across #28901, #30273, and #10107
Gate PASSED Windows Issue28901 screenshot test failed without the fix and passed with it
Try-Fix COMPLETE Exhausted 6 tracked alternative candidates; Selected Fix: PR #30538
Report COMPLETE

Summary

PR #30538 fixes the Windows Switch sizing bug and its regression test genuinely catches the issue. Mandatory try-fix exploration found two passing alternatives, but the best small one (MinWidth = 0 in Loaded) appears to override explicit user MinimumWidth values, and the full template-based fix is much more invasive. The PR's current design is the best trade-off of correctness, maintainability, and scope.

Root Cause

WinUI's default ToggleSwitch template reserves minimum width and spacing for On/Off content that MAUI does not expose. On Windows, the base MapMinimumWidth path clears the local MinWidth value when no explicit MinimumWidth is set, which allows the WinUI default minimum width to reassert itself. The control also keeps an unnecessary internal spacing column for the unused content area.

Fix Quality

The PR addresses both parts of the problem with the right level of specificity:

  • It overrides ToggleSwitch.MinWidth through a Switch-specific mapper so the default WinUI minimum width is suppressed while still respecting explicit MAUI MinimumWidth values.
  • It removes the unnecessary spacing column during Loaded, which is the viable timing point for mutating the realized WinUI visual tree.
  • It adds an issue-specific UI test that fails without the fix and passes with it on Windows.

Compared with the alternatives explored, this is the strongest solution:

  • Smaller loaded-only alternatives risk regressing explicit MinimumWidth behavior.
  • Theme-resource approaches were unstable.
  • Template-copy approaches work but add substantial maintenance overhead.
  • Subclass/template-hook ideas are blocked because WinUI ToggleSwitch is sealed.

@MauiBot MauiBot added s/agent-approved AI agent recommends approval - PR fix is correct and optimal s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Mar 21, 2026
@kubaflo kubaflo changed the base branch from main to inflight/current March 21, 2026 23:33
@kubaflo kubaflo merged commit 093cb38 into dotnet:inflight/current Mar 21, 2026
130 of 194 checks passed
PureWeen pushed a commit that referenced this pull request Mar 24, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Root Cause of the issue

- The native WinUI ToggleSwitch control defines a default
[MinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
of 154 in its style, likely to accommodate the OnContent and OffContent
values supported in WinUI. However, since .NET MAUI does not support
displaying these contents, the default minimum width is unnecessary. As
a result, the control always reserves that space, leading to unnecessary
space usage in .NET MAUI.

### Description of Change

- The native ToggleSwitch's minimum width is now set based on the
MinimumWidthRequest value provided by the MAUI Switch view. Since MAUI
does not support OnContent and OffContent, the default width is
unnecessary. This change ensures the control's width reflects the actual
layout requirement, resolving the unwanted spacing issue.

### Reference
-
[ToggleSwitchThemeMinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
-
[DefaultSpacing](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L501)


### Issues Fixed

Fixes #28901
Fixes #30273
Fixes #10107


### Tested the behaviour in the following platforms

- [x] iOS
- [x] Mac
- [x] Android
- [x] Windows

### Screenshot

| Before Fix | After Fix |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/d8f0c4da-1199-457f-8186-4bf80495c9c8">
| <video
src="https://github.com/user-attachments/assets/8128cfbf-1aaf-46c9-a059-45e512114f73">
|
kubaflo pushed a commit that referenced this pull request Mar 27, 2026
…sample on candidate (#34697)

### Details

PR #30538 fixes the Windows Switch control width issue, where it
previously reserved unnecessary space inherited from WinUI’s
ToggleSwitch default style.
Due to this change, we need to re-save the existing switch images.
Also the reduced Switch width, the grid columns in AppThemePage are
rebalanced, causing the RadioButton (which has Grid.ColumnSpan="2") to
overlap the Editor control on the right side.

### Description of Change:

- Before: RadioButton had Grid.ColumnSpan="2", causing it to span both
columns and overlap the Editor in Column 1 of the same row.

- After: RadioButton is constrained to Grid.Column="0" only, so the
Editor in Column 1 remains in its own cell without overlap.

### Failures caused by these PRs: 
#30538 - The Switch previously
occupied the full width; now it takes only the required space.
#30089 - The Slider previously
appeared without a background color, now the background color is applied
correctly.

### Screenshots

| Before Issue Fix | After Issue Fix |
|----------|----------|
| <img width="300" height="600"
src="https://github.com/user-attachments/assets/ac70ad29-f055-4870-b9b2-5a381f601254">
| <img width="300" height="600"
src="https://github.com/user-attachments/assets/a06482bf-c0de-4c27-87be-d9d00a503723">
|
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Mar 30, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Root Cause of the issue

- The native WinUI ToggleSwitch control defines a default
[MinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
of 154 in its style, likely to accommodate the OnContent and OffContent
values supported in WinUI. However, since .NET MAUI does not support
displaying these contents, the default minimum width is unnecessary. As
a result, the control always reserves that space, leading to unnecessary
space usage in .NET MAUI.

### Description of Change

- The native ToggleSwitch's minimum width is now set based on the
MinimumWidthRequest value provided by the MAUI Switch view. Since MAUI
does not support OnContent and OffContent, the default width is
unnecessary. This change ensures the control's width reflects the actual
layout requirement, resolving the unwanted spacing issue.

### Reference
-
[ToggleSwitchThemeMinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
-
[DefaultSpacing](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L501)


### Issues Fixed

Fixes dotnet#28901
Fixes dotnet#30273
Fixes dotnet#10107


### Tested the behaviour in the following platforms

- [x] iOS
- [x] Mac
- [x] Android
- [x] Windows

### Screenshot

| Before Fix | After Fix |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/d8f0c4da-1199-457f-8186-4bf80495c9c8">
| <video
src="https://github.com/user-attachments/assets/8128cfbf-1aaf-46c9-a059-45e512114f73">
|
sheiksyedm pushed a commit that referenced this pull request Apr 4, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Root Cause of the issue

- The native WinUI ToggleSwitch control defines a default
[MinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
of 154 in its style, likely to accommodate the OnContent and OffContent
values supported in WinUI. However, since .NET MAUI does not support
displaying these contents, the default minimum width is unnecessary. As
a result, the control always reserves that space, leading to unnecessary
space usage in .NET MAUI.

### Description of Change

- The native ToggleSwitch's minimum width is now set based on the
MinimumWidthRequest value provided by the MAUI Switch view. Since MAUI
does not support OnContent and OffContent, the default width is
unnecessary. This change ensures the control's width reflects the actual
layout requirement, resolving the unwanted spacing issue.

### Reference
-
[ToggleSwitchThemeMinWidth](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L188C20-L188C45)
-
[DefaultSpacing](https://github.com/microsoft/microsoft-ui-xaml/blob/a3021d80977fecc7d6ca33dc94dc500c5535faab/src/controls/dev/CommonStyles/ToggleSwitch_themeresources.xaml#L501)


### Issues Fixed

Fixes #28901
Fixes #30273
Fixes #10107


### Tested the behaviour in the following platforms

- [x] iOS
- [x] Mac
- [x] Android
- [x] Windows

### Screenshot

| Before Fix | After Fix |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/d8f0c4da-1199-457f-8186-4bf80495c9c8">
| <video
src="https://github.com/user-attachments/assets/8128cfbf-1aaf-46c9-a059-45e512114f73">
|
sheiksyedm pushed a commit that referenced this pull request Apr 4, 2026
…sample on candidate (#34697)

### Details

PR #30538 fixes the Windows Switch control width issue, where it
previously reserved unnecessary space inherited from WinUI’s
ToggleSwitch default style.
Due to this change, we need to re-save the existing switch images.
Also the reduced Switch width, the grid columns in AppThemePage are
rebalanced, causing the RadioButton (which has Grid.ColumnSpan="2") to
overlap the Editor control on the right side.

### Description of Change:

- Before: RadioButton had Grid.ColumnSpan="2", causing it to span both
columns and overlap the Editor in Column 1 of the same row.

- After: RadioButton is constrained to Grid.Column="0" only, so the
Editor in Column 1 remains in its own cell without overlap.

### Failures caused by these PRs: 
#30538 - The Switch previously
occupied the full width; now it takes only the required space.
#30089 - The Slider previously
appeared without a background color, now the background color is applied
correctly.

### Screenshots

| Before Issue Fix | After Issue Fix |
|----------|----------|
| <img width="300" height="600"
src="https://github.com/user-attachments/assets/ac70ad29-f055-4870-b9b2-5a381f601254">
| <img width="300" height="600"
src="https://github.com/user-attachments/assets/a06482bf-c0de-4c27-87be-d9d00a503723">
|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-switch Switch community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows s/agent-approved AI agent recommends approval - PR fix is correct and optimal s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

8 participants