Skip to content

feat(skills): uno-testing waits with until, scrolls with uno_app_scroll_into_view, sizes with uno_app_resize - #204

Merged
kazo0 merged 1 commit into
mainfrom
dev/sb/uno-testing-loop-tools
Oct 21, 2026
Merged

kazo0 merged 1 commit into
mainfrom
dev/sb/uno-testing-loop-tools

Conversation

@kazo0

@kazo0 kazo0 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): unoplatform/uno.app-mcp#210, unoplatform/uno.app-mcp#211, unoplatform/uno.app-mcp#212

PR Type

  • Feature
  • Documentation content changes

What is the current behavior?

uno-testing has no way to wait for a state, reach an unloaded list item or size the window through the App MCP, because the App MCP had none: agents poll uno_app_find_elements, scroll with keys or coordinate clicks, and size the window with startup code or UI Automation scripts.

unoplatform/uno.app-mcp#214 adds them:

  • uno_app_find_elements(until): wait in one call for a state (items>=40, absent, enabled, selected, text contains …); the count line ends met or NOT met.
  • uno_app_scroll_into_view(list, index | itemText): scrolls a list to an item, loading further pages, and returns the item with a fresh handle and bounds.
  • uno_app_resize(width, height) and uno_app_start(windowSize): the client size in logical pixels.

What is the new behavior?

  • SKILL.md: step 1 passes windowSize; step 5 reaches off-screen list items with scroll_into_view; step 6 adds until and says NOT met is the answer; the transient-state rule waits with until: "absent" (and "visible" to capture a loading view); a new window-size rule replaces startup code and scripts; an older App MCP points to the fallbacks.
  • references/availability.md: what to do with an App MCP that lacks them. Uno.UI.App.Mcp 2.0.0-dev.16 (the tag on unoplatform/uno.app-mcp#214's merge, on NuGet) is the first with them; the newest Uno.Sdk, 7.0.0-dev.87, still pins 2.0.0-dev.15 (dev.81 pins dev.14), so today's projects take the fallbacks until an Sdk picks dev.16 up. The startup-code resize from fix(skills): uno-testing sizes the window from inside the app, keeps Hot Reload's applied as the verdict, saves screenshots without returning them #201 is the fallback there.
  • references/ui.md: the two tools, windowSize and until in the catalogue and parameter blocks.
  • references/INTERACTION-PATTERNS.md: "Scrolling a List to an Item"; waits and loading states in one call.
  • references/assertions.md: list counts and the wait patterns become one call each, replacing the snapshot-retry loops (the file is smaller).
  • references/VISUAL-TREE-GUIDE.md: fresh handles from scroll_into_view, counts from {items=N}.

skills/ mirrors the plugin copy; Test-Plugin.ps1 passes (its size warnings are on files already over budget). SKILL.md grows by about 2,000 characters.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

Draft until unoplatform/uno.app-mcp#214 ships in an App MCP package an Uno.Sdk pins. Until then the new text only applies through the "Older App MCP" fallback.

Conflicts with #201, which makes the startup-code resize the default rule. Whichever lands second should keep it as the fallback in availability.md, as this PR does.

One catalog session with the #214 App MCP and the unchanged skills (6869add, Uno.Sdk 7.0.0-dev.81, unoplatform/private tools/skill-ab run catalog-20261021-152050), against the six Uno sessions of unoplatform/private#1214 and #1215 on the same pins:

This session Baseline (min–max)
Wall time (min) 30 35–65
Turns 346 402–587
Cost (USD) 10.67 12.89–22.38
uno_app_pointer_click 6 9–70
Starts + restarts 18 19–38
Own resize or scroll scripts none 4 of 6 sessions
--data=slow starts 5 4–18

The agent found all three from the tool descriptions alone (11 uno_app_resize, 18 scroll_into_view, 18 until), which is the part of #201's finding ("the resizer is written while building, before uno-testing loads") a tool answers better than a rule. The loading screenshot still took five starts: windowSize was applied after the connection, which #214 now fixes by applying it as the window opens. One session is a smoke test; the comparison worth reporting is a 3-session run of this branch against main with the same App MCP.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V9n3Hvt7p8mFxL7WAT2dBM

…ll_into_view, sizes with uno_app_resize

The App MCP gains three things agents scripted from outside the app (unoplatform/uno.app-mcp#214):
find_elements' `until` (wait for a state in one call), uno_app_scroll_into_view (reach a list item,
loading further pages), and uno_app_resize / uno_app_start(windowSize) (client size in logical pixels).

- SKILL.md: step 1 passes windowSize; step 5 reaches off-screen list items with scroll_into_view; step 6
  adds `until` and says NOT met is the answer; the transient-state rule waits with until absent/visible;
  a window-size rule replaces startup code and scripts; an older App MCP falls back through availability.md.
- references/ui.md: the two tools, windowSize and until in the catalogue and parameter blocks.
- references/INTERACTION-PATTERNS.md: scrolling a list to an item; waits and loading states in one call.
- references/assertions.md: list counts and the wait patterns become one call each (replaces the
  snapshot-retry loops).
- references/availability.md: the fallbacks for an App MCP without them (today's Sdk pins).
- references/VISUAL-TREE-GUIDE.md: fresh handles from scroll_into_view, counts from {items=N}.

Conflicts in intent with #201's "Size the window from inside the app" rule, which becomes the fallback.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V9n3Hvt7p8mFxL7WAT2dBM
@kazo0
kazo0 force-pushed the dev/sb/uno-testing-loop-tools branch from d48d2e4 to 9476cf9 Compare October 21, 2026 22:57
@kazo0
kazo0 marked this pull request as ready for review October 21, 2026 22:57
@kazo0
kazo0 merged commit ba56d3d into main Oct 21, 2026
6 checks passed
@kazo0
kazo0 deleted the dev/sb/uno-testing-loop-tools branch October 21, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant