Skip to content

Fix SearchHandler.ShowsResults runtime updates across platforms - #36215

Merged
kubaflo merged 8 commits into
dotnet:inflight/currentfrom
jpd21122012:fix/35767-SearchHandler.ShowsResultsDontWork-AllPlatforms
Jul 15, 2026
Merged

kubaflo merged 8 commits into
dotnet:inflight/currentfrom
jpd21122012:fix/35767-SearchHandler.ShowsResultsDontWork-AllPlatforms

Conversation

@jpd21122012

Copy link
Copy Markdown
Contributor

Description of Change

This PR fixes SearchHandler.ShowsResults so that changes made at runtime are immediately reflected across supported platforms.

Previously, ShowsResults was only evaluated during the initial SearchHandler setup, causing the search results UI to remain visible after setting ShowsResults to false, or preventing it from reappearing after setting it back to true.

The implementation includes the following changes:

  • Update Android ShellSearchView to react to ShowsResults property changes.
  • Reuse dropdown visibility logic through a shared UpdateShowsResults() helper.
  • Recreate UISearchController on iOS/Mac Catalyst when ShowsResults changes, preserving the current query.
  • Update the Windows AutoSuggestBox to respect ShowsResults at runtime.
  • Keep ItemsSource updates synchronized with the current ShowsResults state.

The fix was validated using the reproduction project attached to the issue and verified on Android and Windows. iOS/Mac Catalyst builds were also verified successfully.

Issues Fixed

Fixes #35767

- Update Android ShellSearchView to react to ShowsResults property changes
- Reuse dropdown visibility logic through UpdateShowsResults
- Recreate UISearchController on iOS/MacCatalyst when ShowsResults changes
- Update Windows AutoSuggestBox to respect ShowsResults at runtime
- Keep ItemsSource updates synchronized with ShowsResults state
Copilot AI review requested due to automatic review settings June 29, 2026 19:25
@github-actions

Copy link
Copy Markdown
Contributor

🚀 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 -- 36215

Or

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

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@jpd21122012! 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

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses #35767 by making SearchHandler.ShowsResults changes at runtime take effect immediately in Shell search UI across platforms, instead of being applied only during initial setup.

Changes:

  • Windows: route AutoSuggestBox.ItemsSource updates through a centralized UpdateShowsResults() helper and respond to ShowsResults changes.
  • iOS/Mac Catalyst (compat): recreate UISearchController when ShowsResults changes while preserving the current query.
  • Android (compat): centralize dropdown show/dismiss logic in UpdateShowsResults() and react to ShowsResults property changes.

Reviewed changes

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

File Description
src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs Updates Windows AutoSuggestBox.ItemsSource handling to respect ShowsResults at runtime via a helper.
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs Recreates the iOS search controller on ShowsResults changes and adds a results-renderer disposal helper.
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellSearchView.cs Adds ShowsResults change handling and refactors dropdown visibility logic into UpdateShowsResults().

Copilot AI review requested due to automatic review settings June 29, 2026 19:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jun 29, 2026
@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jun 29, 2026
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 14, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Expert Review — 3 findings

See inline comments for details.

var oldSearchController = _searchController;

DettachSearchController();
DisposeResultsRenderer();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

[moderate] iOS Platform Specifics / Memory Leak Prevention — DisposeResultsRenderer() disposes the search-results view controller while oldSearchController still owns it as the UISearchController results controller. During a runtime ShowsResults toggle from true to false, UIKit can still release or message that results controller as the old search controller is torn down. Dispose the old UISearchController before disposing the results renderer (after DettachSearchController()), e.g. oldSearchController?.Dispose(); DisposeResultsRenderer();, so native ownership is released in the safer order.

case nameof(SearchHandler.VerticalTextAlignment):
autoSuggestBox.UpdateSearchHandlerVerticalTextAlignment(_currentSearchHandler);
break;
case nameof(SearchHandler.ShowsResults):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

[moderate] Logic and Correctness / XAML & Bindings — This new ShowsResults property-change path only runs when the SearchHandler property actually changes, but SearchHandler.ShowsResultsProperty is still declared with BindingMode.OneTime. A common MVVM usage such as ShowsResults="{Binding ShowsResults}" will read once at setup and then never fire these platform handlers when the view-model value changes, leaving the runtime-toggle scenario broken. Update ShowsResultsProperty in SearchHandler.cs to BindingMode.OneWay (matching other live search settings such as IsSearchEnabled) or document/cover why bound runtime updates are intentionally unsupported.

{
_textBlock.Enabled = SearchHandler.IsSearchEnabled;
}
else if (e.PropertyName == SearchHandler.ShowsResultsProperty.PropertyName)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

[major] Regression Prevention — This PR changes platform search plumbing for runtime ShowsResults toggles but adds no regression test covering either initial ShowsResults=false or true -> false -> true after the native search view is attached. This behavior has separate Android, iOS/MacCatalyst, and Windows implementations, so it can regress independently. Add a Shell/SearchHandler UI regression that types a non-empty query, toggles ShowsResults, and asserts suggestions are hidden/restored (at least on the requested Android path, with comparable coverage for the other touched platforms where feasible).

MauiBot

This comment was marked as outdated.

kubaflo pushed a commit that referenced this pull request Jul 14, 2026
…ted, not compile failure

A category hard-killed at its per-category wall budget (150 min) returns
exit 124 / EnvError 'timeout' from Invoke-UITestWithRetry. Its build-output.log
tail (captured from the killed attempt) frequently ends in 'Build FAILED.' or
'Build/deploy failed after N attempts', so the Post-stage classifier misread it
as a *compile* failure and told the reviewer 'The HostApp failed to **compile**'
— e.g. #36215 (Shell ran 148 min, killed at 150 min, reported as a compile break).

The deep loop now persists an authoritative run-status.txt (ExitCode + EnvError)
per category, and the Post-stage classifier reads it FIRST: exit 124 / timeout is
an infrastructure/timeout interruption, never a compile failure. Reworded the
interrupted note so it no longer over-asserts 'the tests started' and names the
time-budget/timeout cause explicitly. Genuine compile failures (exit != 124) are
unaffected. Unit-tested 3 scenarios.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 15d2af20-e4ab-4e88-9011-cfbd83513bc0
@kubaflo

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jul 14, 2026
@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 14, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@jpd21122012 — new AI review results are available based on this last commit: 20343f7. To request a fresh review after new comments or commits, comment /review rerun.

Gate No Tests Confidence Medium Platform Ci


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ SKIPPED

No tests were detected in this PR.

Recommendation: Add tests to verify the fix using the write-tests-agent.


📱 UI Tests — Shell

Detected UI test categories: Shell

✅ Deep UI tests — 309 passed, 0 failed across 1 category on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Shell 309/309 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

📋 Pre-Flight — Context & Validation

Issue: unknown - GitHub CLI unauthenticated; linked issue could not be fetched.
PR: #36215 - local branch pr-review-36215 (title unavailable; GitHub CLI unauthenticated)
Platforms Affected: CI/Copilot PR-review pipeline; Android requested for testing, plus UI/deep-test infrastructure across platforms.
Files Changed: 26 implementation/script/docs files, 0 detected product test files.

Key Findings

  • Gate was already skipped by the caller because no tests were detected; no gate rerun was performed.
  • Current PR fix changes trusted CI/review scripts, including gate orchestration, custom prompt analysis/posting, UI test retry behavior, emulator/device helpers, and release-readiness support scripts.
  • Highest-risk issue from expert review: PR-controlled test output is streamed/replayed to Azure Pipelines without consistently defanging logging commands.
  • GitHub remote context, PR description, linked issue, comments, reviews, and required checks could not be fetched because gh is unauthenticated.

Code Review Summary

Verdict: NEEDS_CHANGES
Confidence: medium
Errors: 2 | Warnings: 2 | Suggestions: 0

Key code review findings:

  • ✗ PR-controlled test output is echoed to Azure Pipelines without logging-command defanging (BuildAndRunHostApp.ps1, Invoke-UITestWithRetry.ps1).
  • ✗ Custom prompt feature appears not wired into eng/pipelines/ci-copilot.yml.
  • ⚠ New deep UI test resilience helpers/parameters appear not wired into the deep UI stage.
  • ⚠ Fixed prompt delimiters in AI failure-analysis prompts can be broken by PR-controlled failure text.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #36215 Adds custom prompt flow, gate skip mode, UI/deep-test resilience and diagnostics, and several release/readiness script changes. ⚠️ SKIPPED (Gate: no tests detected) 26 files Original PR; remote narrative unavailable.

🔬 Code Review — Deep Analysis

Code Review — PR #36215 (local diff only)

Independent Assessment

What this changes: Adds/adjusts CI Copilot review pipeline behavior: custom prompt analysis/posting, gate skip mode, UI-test/deep-test resilience, test verification classification, and several helper scripts.
Inferred motivation: Reduce false CI failures in the agent review pipeline, surface maintainer custom requests, make deep UI test failures more diagnosable, and avoid misclassifying infra/test-environment failures as PR regressions.

Reconciliation with PR Narrative

Author claims: unavailable — GitHub CLI is unauthenticated in this environment.
Agreement/disagreement: local diff indicates the PR is a CI/Copilot review pipeline hardening and diagnostics change. Claims could not be verified against the PR description.

Prior Review Reconciliation

No prior ❌ Error findings found locally. Remote PR review/comment surfaces could not be queried because gh is unauthenticated.

Blast Radius Assessment

  • Runs for all instances: yes — changed scripts execute in the automated PR review, gate, deep UI, and posting stages.
  • Startup impact: no product startup impact, but pipeline startup/phase orchestration is affected.
  • Static/shared state: yes — cross-phase files and Azure pipeline variables control later behavior.

CI Status

  • Required-check result: undetermined
  • Classification: undetermined — gh is unauthenticated; gate result supplied by caller was SKIPPED because no tests were detected.
  • Action taken: confidence capped; no GitHub comments posted.

Findings

❌ Error — PR-controlled test output is echoed to Azure Pipelines without logging-command defanging

.github/scripts/BuildAndRunHostApp.ps1 streams raw dotnet test output via Tee-Object; Invoke-UITestWithRetry.ps1 also replays captured output verbatim. UI tests and failure text are PR-controlled, so a malicious PR can print Azure logging commands such as ##vso[task.setvariable ...] and have them interpreted by the agent console before any later sanitizer sees them. This violates the CI Copilot pipeline security rule requiring PR-controlled stdout to be defanged.

❌ Error — Custom prompt feature is not wired into the pipeline

Review-PR.ps1 adds -CustomPrompt and PostCustomPrompt, plus a new post-custom-prompt-comment.ps1, but local search did not find corresponding ci-copilot.yml wiring that passes the parameter to CopilotReview/PostCustomPrompt. The feature is therefore effectively dead in CI.

⚠️ Warning — New deep UI test resilience scripts/parameters are not wired into the deep test stage

The PR adds timeout/reset/failure-analysis helpers and parameters, but the observed deep UI stage still calls Invoke-UITestWithRetry.ps1 without timeout parameters and no callers were found for the reset/analysis scripts. The intended Android deep-test resilience may not run.

⚠️ Warning — AI prompt data delimiters can be broken by PR-controlled failure text

Analyze-UITestFailures.ps1 embeds untrusted failure/diff text between fixed markers. A malicious test failure containing the closing marker can move injected text outside the data block and steer the model's classification.

Failure-Mode Probing

  • Malicious UI test writes ##vso[task.setvariable variable=hasUIFailures]false: raw streaming/replay paths can let Azure interpret the line as a command.
  • Maintainer queues a custom prompt: if the YAML never passes -CustomPrompt, the analysis returns immediately and nothing is posted.
  • Android category hangs: if timeout parameters are not wired, the outer AzDO task timeout remains the real timeout.
  • Failure text contains <<<DATA: fixed prompt delimiters can be closed by PR-controlled text before the intended end of the data block.

Verdict: NEEDS_CHANGES

Confidence: medium locally; low for overall readiness because remote CI and review surfaces were unavailable.
Summary: The current PR fix leaves at least one high-confidence security issue in PR-controlled stdout handling and appears to add some unwired features. Alternative candidates should prioritize a reusable Azure logging-command sanitizer at every PR/test-output console boundary, then separately address pipeline wiring.


🛠️ Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 try-fix-1 Add a shared Azure logging-command sanitizer and use it for PR-controlled test-output streaming/replay. ⚠️ BLOCKED Android runtime; ✅ static validation passed 3 files Strongest standalone candidate; directly addresses the highest-risk security finding.
2 try-fix-2 Wire CustomPrompt through eng/pipelines/ci-copilot.yml with validation and a PostCustomPrompt fallback task. ⚠️ BLOCKED Android runtime; ✅ static wiring validation passed 1 file Makes the PR's custom-prompt feature functional in CI, but does not address stdout injection.
3 try-fix-3 Replace inline untrusted Copilot prompt blobs with path-only data handoff for UI failure analysis and custom prompts. ⚠️ BLOCKED Android runtime; ✅ static validation passed 2 files Defense-in-depth against prompt delimiter breakout; complementary to candidate 1.
PR PR #36215 Adds custom prompt flow, gate skip mode, UI/deep-test resilience and diagnostics, and release/readiness script changes. ⚠️ SKIPPED (Gate: no tests detected) 26 files Original PR. Expert review found unresolved security/wiring risks.

Iteration Notes

  • try-fix-1 generated from expert review finding: raw PR-controlled test output can reach Azure Pipelines as live stdout. Static validation confirmed ##vso[ and ##[ are defanged while scripts parse successfully.
  • try-fix-2 learned from try-fix-1 limitation: stdout sanitization does not make the new custom-prompt feature usable. This candidate instead wires the existing script parameters into the YAML pipeline.
  • try-fix-3 learned from try-fix-2 limitation: wiring custom prompt still leaves delimiter/prompt-boundary injection risk. This candidate avoids inline untrusted prompt/test blobs.

Cross-Pollination

Model/Reviewer Round New Ideas? Details
maui-expert-reviewer 1 Yes Identified four independent issue classes: stdout logging-command injection, custom-prompt YAML wiring, deep-UI helper wiring, and prompt delimiter breakout.
maui-expert-reviewer 2 Yes Proposed YAML CustomPrompt parameter + trusted phase wiring after try-fix-1 addressed stdout only.
maui-expert-reviewer 3 Yes Proposed path-only data handoff after try-fix-2 left prompt delimiter risk.
orchestrator 4 No Remaining deep-UI helper wiring is a variant of try-fix-2's YAML wiring class and not a better standalone fix than candidate 1 for the highest-risk issue.

Exhausted: Yes — meaningful independent approaches were explored: output sanitization, pipeline wiring, and prompt-boundary hardening. Further candidates would be combinations or minor variations.

Selected Fix: No candidate can be declared fully passing because the supplied gate result was SKIPPED and Android runtime verification had no runnable tests. If choosing by risk reduction and code-review quality, Candidate #1 is the best standalone alternative because it directly fixes the highest-severity security issue (PR-controlled Azure logging-command injection) while preserving the PR's live-output intent. Candidate #2 and #3 are complementary improvements that should be considered separately or combined with candidate #1.


🏁 Report — Final Recommendation

Comparative Report — PR #36215

Candidate ranking

Rank Candidate Result Assessment
1 pr Gate skipped; no tests detected Best candidate. It directly fixes the actual committed SearchHandler ShowsResults runtime-update bug across Android, iOS/Mac Catalyst, and Windows. Expert review found no actionable issues in the constrained committed diff.
2 pr-plus-reviewer Same as pr Equivalent to pr because the constrained expert reviewer produced no inline findings and no sandbox changes were needed. Ranked below pr only because it is not a distinct improvement.
3 try-fix-1 Android runtime blocked; static validation passed Addresses Azure Pipelines logging-command sanitization in CI scripts. Useful for the stale STEP 5a context, but unrelated to the actual SearchHandler diff and does not fix #35767.
4 try-fix-3 Android runtime blocked; static validation passed Addresses prompt-boundary hardening in Copilot/UI-test scripts. Also unrelated to the actual SearchHandler platform fix.
5 try-fix-2 Android runtime blocked; static validation passed Wires a custom prompt parameter through CI YAML. This is unrelated to the SearchHandler runtime behavior and does not address the issue fixed by the PR.

No candidate is documented as having failed regression tests. The supplied gate result for the PR was skipped because no tests were detected; the try-fix candidates were blocked for Android runtime verification and only statically validated.

Why pr wins

The local committed PR diff is a focused product fix for SearchHandler.ShowsResults runtime updates. The STEP 5a try-fix candidates target unrelated CI/Copilot pipeline concerns from stale dirty-working-tree context, so they cannot be selected as the winning fix for this PR even though their static checks passed.

The expert reviewer found no actionable findings in the actual three-file SearchHandler diff, making pr-plus-reviewer identical to pr. Therefore the raw PR fix is the simplest and most accurate winning candidate.

Recommendation

Proceed with the PR fix as submitted. Because the gate was skipped with no detected tests, the author should consider adding focused coverage for runtime ShowsResults toggling on the supported platforms, but the absence of tests does not make any unrelated try-fix candidate a better fix.


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jul 14, 2026
@kubaflo
kubaflo changed the base branch from main to inflight/current July 15, 2026 14:48

@kubaflo kubaflo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you please resolve conflicts?

@kubaflo
kubaflo force-pushed the inflight/current branch from 0651f27 to 84d8b21 Compare July 15, 2026 15:10
@jpd21122012

Copy link
Copy Markdown
Contributor Author

Could you please resolve conflicts?

Done! I resolved the merge conflicts with inflight/current. I'm investigating the CI failure now.

@kubaflo

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@kubaflo — test-failure review results are available based on commit a9d4a6b.
To request a fresh review after new comments, commits, or CI runs, comment /review tests.

Overall Needs human investigation Failures 5 Baseline 3 on base Platform android Platform ios Platform windows

Test Failure Review: Needs human investigation - click to expand

Overall verdict: Needs human investigation

All 5 extracted failures are indeterminate — the platform-tools;35.0.2 provisioning error and PublishTestResults build errors also appear on the base branch at the leg level, but cannot be cleanly dismissed without human review due to 52 unexplained failed build legs and 1 unmapped check (Build Analysis).

Coverage: 36 checks total · 4 passing/neutral · 32 failing · 0 pending · 0 inaccessible · 1 unmapped · 52 unexplained failed build legs · 0 unaccounted failing checks · 0 aborted failing checks · 0 canceled-build checks · 0 device-test unverified · 5 unattributed · 0 regressed-vs-base. Deterministic ceiling: Needs human investigation — 1 failing check(s) have no inspectable AzDO build evidence (Build Analysis); 52 failed build leg(s) produced no extractable failure; 5 failure(s) could not be attributed deterministically.

Failure Verdict On base? Evidence
platform-tools;35.0.2 not found (macOS) Needs human investigation also-red indeterminate; avdmanager/SDK provisioning failure; leg also-red on base build 1510592; 2 occurrences on PR; unrelated to PR code changes but not dismissible without human review
platform-tools;35.0.2 not found (android) Needs human investigation also-red indeterminate; EXEC : warning : Failed to find package during Android SDK provisioning; leg also-red on base build 1510592; 6 occurrences; unrelated to PR code
platform-tools;35.0.2 not found (unknown platform) Needs human investigation also-red indeterminate; avdmanager exit error; leg also-red on base build 1510592; 4 occurrences
PublishTestResults - build error (occurrence 1) Needs human investigation also-red indeterminate; No test result files matching error; leg also-red on base; no exact baseline test match; likely downstream of build failures above
PublishTestResults - build error (occurrence 2) Needs human investigation also-red indeterminate; same pattern as above; leg also-red on base; downstream of provisioning failures

Recommended action

A human should verify that the platform-tools;35.0.2 SDK provisioning failure and the 52 unexplained build legs are pre-existing infrastructure issues on inflight/current (base builds 1510592, 1510581, and others also failed), and review the Build Analysis check independently before merging.

Evidence details

PR build: maui-pr 1510812

Base builds (inflight/current):

Unmapped check: Build Analysis — no inspectable AzDO build evidence; must be reviewed manually.

Unexplained failed legs (52 total, sample): Run Integration Tests (RunOniOS_BlazorRelease, Build, Blazor, RunOniOS_MauiReleaseTrimFull, RunOniOS_BlazorDebug, AOT), Run Helix Tests, Build Microsoft.Maui.sln, PublishTestResults, and others. These produced no extractable test failure; logs must be opened individually.

Limitation: Baseline failure list may be incomplete — only the first 8 of 91 failed build logs were inspected for base build 1510592. A fuller baseline inspection may reclassify some failures as pre-existing.

PR scope: 3 files changed, 0 test files changed. Inferred platforms: android, ios, windows. Area hints: Shell, Handler.

@jpd21122012

Copy link
Copy Markdown
Contributor Author

@kubaflo I reviewed the test-failure analysis. The reported failures appear to be pre-existing infrastructure issues on inflight/current, mainly the missing platform-tools;35.0.2 provisioning error, and the same legs are also failing on the base branch. The analysis did not identify any regression versus the base branch.

Could you please confirm whether these checks can be treated as base-branch infrastructure failures, or if you’d like me to rerun any specific job?

@kubaflo
kubaflo merged commit 431890b into dotnet:inflight/current Jul 15, 2026
4 of 36 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR10 milestone Jul 15, 2026
kubaflo pushed a commit that referenced this pull request Jul 22, 2026
### Description of Change

This PR fixes `SearchHandler.ShowsResults` so that changes made at
runtime are immediately reflected across supported platforms.

Previously, `ShowsResults` was only evaluated during the initial
`SearchHandler` setup, causing the search results UI to remain visible
after setting `ShowsResults` to `false`, or preventing it from
reappearing after setting it back to `true`.

The implementation includes the following changes:

* Update Android `ShellSearchView` to react to `ShowsResults` property
changes.
* Reuse dropdown visibility logic through a shared
`UpdateShowsResults()` helper.
* Recreate `UISearchController` on iOS/Mac Catalyst when `ShowsResults`
changes, preserving the current query.
* Update the Windows `AutoSuggestBox` to respect `ShowsResults` at
runtime.
* Keep `ItemsSource` updates synchronized with the current
`ShowsResults` state.

The fix was validated using the reproduction project attached to the
issue and verified on Android and Windows. iOS/Mac Catalyst builds were
also verified successfully.

### Issues Fixed

Fixes #35767
kubaflo pushed a commit that referenced this pull request Jul 28, 2026
### Description of Change

This PR fixes `SearchHandler.ShowsResults` so that changes made at
runtime are immediately reflected across supported platforms.

Previously, `ShowsResults` was only evaluated during the initial
`SearchHandler` setup, causing the search results UI to remain visible
after setting `ShowsResults` to `false`, or preventing it from
reappearing after setting it back to `true`.

The implementation includes the following changes:

* Update Android `ShellSearchView` to react to `ShowsResults` property
changes.
* Reuse dropdown visibility logic through a shared
`UpdateShowsResults()` helper.
* Recreate `UISearchController` on iOS/Mac Catalyst when `ShowsResults`
changes, preserving the current query.
* Update the Windows `AutoSuggestBox` to respect `ShowsResults` at
runtime.
* Keep `ItemsSource` updates synchronized with the current
`ShowsResults` state.

The fix was validated using the reproduction project attached to the
issue and verified on Android and Windows. iOS/Mac Catalyst builds were
also verified successfully.

### Issues Fixed

Fixes #35767
kubaflo pushed a commit that referenced this pull request Jul 29, 2026
### Description of Change

This PR fixes `SearchHandler.ShowsResults` so that changes made at
runtime are immediately reflected across supported platforms.

Previously, `ShowsResults` was only evaluated during the initial
`SearchHandler` setup, causing the search results UI to remain visible
after setting `ShowsResults` to `false`, or preventing it from
reappearing after setting it back to `true`.

The implementation includes the following changes:

* Update Android `ShellSearchView` to react to `ShowsResults` property
changes.
* Reuse dropdown visibility logic through a shared
`UpdateShowsResults()` helper.
* Recreate `UISearchController` on iOS/Mac Catalyst when `ShowsResults`
changes, preserving the current query.
* Update the Windows `AutoSuggestBox` to respect `ShowsResults` at
runtime.
* Keep `ItemsSource` updates synchronized with the current
`ShowsResults` state.

The fix was validated using the reproduction project attached to the
issue and verified on Android and Windows. iOS/Mac Catalyst builds were
also verified successfully.

### Issues Fixed

Fixes #35767
kubaflo pushed a commit that referenced this pull request Aug 7, 2026
### Description of Change

This PR fixes `SearchHandler.ShowsResults` so that changes made at
runtime are immediately reflected across supported platforms.

Previously, `ShowsResults` was only evaluated during the initial
`SearchHandler` setup, causing the search results UI to remain visible
after setting `ShowsResults` to `false`, or preventing it from
reappearing after setting it back to `true`.

The implementation includes the following changes:

* Update Android `ShellSearchView` to react to `ShowsResults` property
changes.
* Reuse dropdown visibility logic through a shared
`UpdateShowsResults()` helper.
* Recreate `UISearchController` on iOS/Mac Catalyst when `ShowsResults`
changes, preserving the current query.
* Update the Windows `AutoSuggestBox` to respect `ShowsResults` at
runtime.
* Keep `ItemsSource` updates synchronized with the current
`ShowsResults` state.

The fix was validated using the reproduction project attached to the
issue and verified on Android and Windows. iOS/Mac Catalyst builds were
also verified successfully.

### Issues Fixed

Fixes #35767
kubaflo pushed a commit that referenced this pull request Aug 12, 2026
This PR fixes `SearchHandler.ShowsResults` so that changes made at
runtime are immediately reflected across supported platforms.

Previously, `ShowsResults` was only evaluated during the initial
`SearchHandler` setup, causing the search results UI to remain visible
after setting `ShowsResults` to `false`, or preventing it from
reappearing after setting it back to `true`.

The implementation includes the following changes:

* Update Android `ShellSearchView` to react to `ShowsResults` property
changes.
* Reuse dropdown visibility logic through a shared
`UpdateShowsResults()` helper.
* Recreate `UISearchController` on iOS/Mac Catalyst when `ShowsResults`
changes, preserving the current query.
* Update the Windows `AutoSuggestBox` to respect `ShowsResults` at
runtime.
* Keep `ItemsSource` updates synchronized with the current
`ShowsResults` state.

The fix was validated using the reproduction project attached to the
issue and verified on Android and Windows. iOS/Mac Catalyst builds were
also verified successfully.

Fixes #35767
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 15, 2026
@sheiksyedm sheiksyedm modified the milestones: .NET 10 SR10, .NET 10 SR11 Aug 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchHandler.ShowsResults does not work correctly

5 participants