Repository navigation
feat(skills): uno-testing edits the running app through Hot Reload instead of restarting it, with a PostToolUse hook - #186
Merged
Conversation
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload
branch
from
October 12, 2026 11:20
c594567 to
b6a4162
Compare
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload
branch
from
October 12, 2026 11:54
b6a4162 to
0e7214a
Compare
…stead of restarting it, with a PostToolUse hook The uno-testing skill now says when Hot Reload is live (about 12 s after uno_app_start returns; edits before that are dropped and not replayed), that an edit to an existing .xaml or .cs file reaches the running app in 2 to 4 s on desktop and Android, and that uno_app_start is only for launch arguments, platform, app data, Release, or a change Hot Reload does not carry. The "close before you build" rule is scoped to when a start is needed. The plugin ships its first Claude Code hook: PostToolUse on Edit|Write|MultiEdit, a POSIX sh script that, for a .xaml or .cs path, adds context telling the agent to assert with uno_app_find_elements instead of restarting. Measured through the App MCP host (DevServer 6.7.135, Uno.Sdk 6.7.30, App MCP 1.4 local build): unoplatform/uno.app-mcp#187. In FieldCheck run fieldcheck-20261009-010927 the two Uno sessions made 29 and 17 app starts, most after edits. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
…edit of another file; same-file re-edit, then a start Measured both directions in the Hot Reload probe behind unoplatform/uno.app-mcp#187. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload
branch
from
October 12, 2026 12:15
0e7214a to
ac0789a
Compare
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.
Stacked on #185 (base
dev/steve/uno-dev-find-elements); the diff is this PR's change only.What
uno-testingskill, both copies: step 2 says Hot Reload is live about 12 s afteruno_app_startreturns and that the first edit waits at least 15 s, because edits in that window are dropped, never replayed, and not carried by a later edit of another file, and the indicator that would show readiness is hidden by our ownUseStudioarguments. A new critical rule says to edit the running app (an existing.xamlor.csfile applies in 2 to 4 s on desktop and Android; a C# edit recreates the page), assert withuno_app_find_elements(waitForMs), and calluno_app_startonly for launch arguments, platform, app data, a Release build, or a change Hot Reload does not carry (new file,.csproj, packages, startup code). "Close it before you build" is scoped to when a start is needed.hooks/hooks.json+hooks/hot-reload-edit.sh, Claude Code only):PostToolUseonEdit|Write|MultiEdit; for a.xamlor.cspath it returnsadditionalContextthat says the running app picks the edit up through Hot Reload, assert instead of restarting. Other paths print nothing. Runs under Git Bash on Windows (Claude Code's default hook shell) andshelsewhere.hooks/in Contents and Manifests.Why
Measured through the App MCP host (DevServer 6.7.135, Uno.Sdk 6.7.30, App MCP 1.4 local build, template app, indicator visible), details in unoplatform/uno.app-mcp#187:
uno_app_startreturns afterIn FieldCheck run
fieldcheck-20261009-010927(unoplatform/private#1189) the two Uno sessions made 29 and 17uno_app_startcalls, most of them "relaunching to pick up the fix" after an edit, at 15 to 40 s each plus the navigation back. Hot Reload was never relied on; the first edit after a start is the one that gets lost, which looks like Hot Reload not working.Not yet
The hook points at
uno_app_find_elements, not at a Hot Reload status tool, because none exists; unoplatform/uno.app-mcp#187 proposesuno_app_hot_reload_statusand a readiness wait inuno_app_start. When they ship, the hook and step 2 switch to them and the 15 s clock rule goes away. Not measured, so still a start: new files,.csprojand package changes.Verification
PostToolUseJSON:.xaml,.xaml.csand.cspaths (Windows and POSIX) return valid JSON withadditionalContext;.csprojand.mdreturn nothing. Thehooks.jsoncommand string run throughbash -cwithCLAUDE_PLUGIN_ROOTset to a Windows path (X:\src\studio\plugins\uno-platform-studio) produces the same output.hooks.jsonparses; the script is committed100755witheol=lffrom.gitattributes..github/scripts/Test-Plugin.ps1locally: the skill mirror check passes; the one error it reports (uno-dev: Markdown and Codex agent instructions differ) is also present on the base branch locally, untouched here.validate-plugin.ymlonly runs for PRs againstmainorrelease/stable/**, so it does not run on this stacked PR until feat(skills): uno-testing asserts with uno_app_find_elements after an action, screenshot only for the eye #185 merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL