Repository navigation
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
Conversation
…Hot Reload's `applied` as the verdict, saves screenshots without returning them; the hook says nothing before the app exists Measured on nine skill-ab catalog sessions (six with the plugin, three with the Uno MCPs alone; unoplatform/private#1214, #1215, #1218), from the claude-home transcripts, which carry the hook's notes: - With the skills, agents wrote a UI Automation window resizer and ran it 28 to 59 times a session, once before most screenshots; without them, agents sized the window from inside the app through a launch argument (0 to 3 runs). The skill said nothing about window size. New rule: read the size from a launch argument in OnLaunched and apply it with AppWindow.Resize (ResizeClient is not implemented in Uno), passed through uno_app_start(args). - 6 to 13 launches a session, a third of them, came right after the hook had said `applied`: "constructor changes need a fresh model instance", "a new dependency property can't be hot-reloaded", "restarting cleanly", and startup-theme checks done as one restart per edit. The rule now names those cases as `applied`, and asks for startup checks to be proved with one restart after the related edits. - 5 to 17 starts a session relaunched `--data=slow` chasing a 4 s loading view that is gone before uno_app_start returns. New rule: make the app hold the state, or batch the start with several saved screenshots in one message. - 50 to 84% of screenshots came back inline (returnImage: true, or no path) against the save-to-file rule; references/ui.md still said to omit path to inspect the image. The rule and the reference now name returnImage and maxWidth. - The hook fired on 14 to 20 scaffolding edits before any app existed and injected a reminder each time, 32 to 59 notes and 4.5 to 8.4k persistent tokens a session. With the CLI present and no app connected it now prints nothing; the no-CLI reminder stays. Closes #200. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
|
|
Validated with three The hook change holds. No session got a hook note before its first The skill text did not show. Two of the three sessions never invoked That matches unoplatform/private#1217's A/B of
I can split the hook change out into its own PR and turn the rest into the PreToolUse hook if that is the direction you want. |
… moves to #202 Co-Authored-By: Claude Fable 5.1 <[email protected]>
applied and inline screenshots; the hook is silent before the app existsapplied as the verdict, saves screenshots without returning them
…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
The
uno-testingtext changes only: the hook change is #202 (validated), and the restart rule is being enforced by a hook in a follow-up PR.What changed
Four habits measured on nine skill-ab
catalogsessions (six with the plugin, three with the Uno MCPs and no skills: unoplatform/private#1214, #1215, #1218), read from theclaude-hometranscripts, which carry the hook's notes thatstream.jsonldrops. Numbers and sequences are in #200.OnLaunched, apply it withAppWindow.Resize(ResizeClientis not implemented in Uno), pass it throughuno_app_start(args)appliedappliedand asks for startup checks to be proved with one restart after the related editsuno_app_startreturns--data=slowstarts a sessionreturnImage: trueor nopath) against the save-to-file rulereferences/ui.mdnow namereturnImageandmaxWidth;ui.mdno longer says to omitpathto inspect the imageskills/mirrors the plugin copy;Test-Plugin.ps1passes.Validation, and what it says about this PR
Three catalog sessions on the branch (unoplatform/private#1220): two never loaded
uno-testing(the baseline loaded it in five of six; the description is unchanged), and the one that did restarted afterappliedten times, built a window-resizer tool and was the dearest of the nine sessions on this plugin. Same conclusion as unoplatform/private#1217 ondev/steve/uno-testing-loop: a rule in the skill text does not move the restart, and the resizer is written while building, beforeuno-testingloads. So this PR is the text that should be true, not a measured saving; the enforcement is the restart-guard hook PR, and the window-sizing rule may belong inuno-build-app.Closes #200.
🤖 Generated with Claude Code