Repository navigation
feat(skills): uno-dev automation ids on every control, and selectors before snapshots - #184
Merged
Merged
Conversation
…before snapshots uno.app-mcp#181 lets every element tool take automationId or name in place of a snapshot handle, resolved against the live tree at call time. In the FieldCheck runs the agent took a snapshot before most actions and fell back to coordinate clicks when handles went stale; the new path is one call. - uno-dev and uno-build-app: every control a person acts on, and every element a check reads, gets AutomationProperties.AutomationId as the XAML is written. - uno-testing: locate by automationId or name first, snapshot only to discover or assert, handles when the element has neither, coordinates last; the tool reference documents the selector parameters, scopeRef and the no-match and ambiguity errors; type_text focuses its target. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
…o-dev creates App.xaml.cs calls UseStudio(showHotReloadIndicator: false, launchHotDesignOnStart: false): nothing of Studio's sits over the app in Debug screenshots or under pointer clicks, so there is no reason to capture from a Release build. Hot Reload and the App MCP are unaffected. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
rajamatt
approved these changes
Oct 9, 2026
kazo0
force-pushed
the
dev/steve/uno-dev-automation-ids
branch
from
October 12, 2026 11:09
81d6a61 to
be51dc5
Compare
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to unoplatform/uno.app-mcp#181 (
dev/sb/element-selector-targeting-1.4), which lets every element tool takeautomationIdornamein place of a snapshot handle, resolved against the live tree at call time.What
AutomationProperties.AutomationId(PascalCase, role-named, unique on its page, bound to the item key inside templates), written with the XAML rather than added later.automationIdornamefirst and snapshot only to discover or assert; handles when the element has neither; coordinates last. The tool reference documents the selector parameters,scopeRef, the no-match and ambiguity errors, anduno_app_type_textfocusing its target. "Handles expire" becomes "selectors do not expire; handles do".MainWindow.UseStudio(showHotReloadIndicator: false, launchHotDesignOnStart: false);under#if DEBUG. The Hot Reload indicator and Hot Design button otherwise sit over the app in every Debug screenshot, which is why the agent captured its final screenshots from Release builds through adb and UI Automation instead of through the App MCP (one FieldCheck session spent 50 adb calls and 12 Release build commands on that). Hot Reload and the App MCP are unaffected by the flag.skills/copies are updated to match.Why
In the 2026-10-08 FieldCheck runs the Uno agent took a visual-tree snapshot before most element actions (17 to 32 per session, 6 to 9k chars each) and fell back to coordinate clicks when handles went stale (55 / 10 / 12 per session). With selectors an action is one call; with automation ids in the XAML the agent knows the selector before the app runs.
Verified
With the branch packed locally and a FieldCheck app from an earlier run: on desktop and on Android the App MCP offers the selector parameters, resolves
namelive (DataContext and screenshot by name, ambiguity list with fresh handles for duplicates), and rejects a bogusautomationIdand a two-selector call with the documented errors. A skill-ab smoke run with this checkout passes.One thing the branch should know: the snapshot renders a name with spaces as
#Primary_navigation, while thenameselector needs the exact valuePrimary navigation; an agent that copies the token from the tree gets "No element matched". The skill text points at the XAML value, but rendering the raw name, or matching the underscored form too, would remove the trap.🤖 Generated with Claude Code
https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL