Repository navigation
feat(skills): uno-testing confirms each edit with uno_app_hot_reload_status when the App MCP offers it - #188
Merged
Conversation
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload-status
branch
from
October 12, 2026 11:20
b9b0ab0 to
7d2b169
Compare
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload-status
branch
from
October 12, 2026 11:54
7d2b169 to
2db3bb2
Compare
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload-status
branch
from
October 12, 2026 12:15
2db3bb2 to
856b66c
Compare
…status when the App MCP offers it The App MCP from unoplatform/uno.app-mcp#187 makes uno_app_start wait until Hot Reload is ready and adds uno_app_hot_reload_status(file), which reports whether an edit was applied, with the compiler errors when not. The skill and the PostToolUse hook point at it when discovery lists it, and keep the 15 s clock rule as the fallback for App MCP versions without it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL
…nd lets the status result decide when to start again FieldCheck sessions on the branch with the previous rule still made 17 to 29 uno_app_start calls each: the agent rebuilt and relaunched after batches of edits, restarted "to be safe" for a new class, an MVUX member or an event handler, and on Android treated the missing uno_app_close as a reason to start again; where it did ask uno_app_hot_reload_status, every edit was applied. - Workflow step 8 is the edit loop: save, uno_app_hot_reload_status(file, waitForMs), back to the check; NOT applied carries the compiler diagnostics (no dotnet build); RudeEdit is the one signal for a start. Step 1 says the build and the start happen once per platform. - The critical rule names the allowed reasons to start and says new classes, members, files, handlers and generated code go through Hot Reload first; Android without uno_app_close is not a reason. - references/ui.md: the quick start loops through Hot Reload, the tool table lists uno_app_hot_reload_status, "Before rebuilding" asks whether a rebuild is needed at all. - The PostToolUse hook says not to build, close or start for an edit, not to be safe either. - uno-build-app verification.md: a fix needs neither a build nor a start. - codex/uno-dev.toml synced with agents/uno-dev.agent.md (the repo check had failed since the automation-ids commit). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_017KfqeYY7rsu5aiXBNtzsDQ
…ther Hot Reload applied the edit The hook runs `uno-devserver app hot-reload --no-start --file <edited>` and reports the exit code to the agent: applied (assert), not applied (block with the compiler diagnostics), rude edit (start again). It never starts a DevServer, finds the solution by walking up from the edited file, and keeps the former reminder when the CLI, a host, or the status tool is missing, so Community and older App MCP setups behave as before. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NzKY9EQxsHN7uhcmPniyJZ
…oad-status` verb Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NzKY9EQxsHN7uhcmPniyJZ
kazo0
force-pushed
the
dev/steve/uno-testing-hot-reload-status
branch
from
October 12, 2026 12:18
856b66c to
52d0dd5
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 #186 (base
dev/steve/uno-testing-hot-reload).What
The uno-testing skill (both copies) and the
PostToolUsehook useuno_app_hot_reload_statuswhen the App MCP's discovery lists it (unoplatform/uno.app-mcp#187):uno_app_startalready waits for Hot Reload and its result has aHot Reload:line; if it says still initializing, calluno_app_hot_reload_status(waitForReady: true)before the first edit. Without the tool, the 15 s clock rule from feat(skills): uno-testing edits the running app through Hot Reload instead of restarting it, with a PostToolUse hook #186 stays.uno_app_hot_reload_status(file)first (applied, or the compiler errors to fix and save again, no restart), thenuno_app_find_elements(waitForMs).Verification
.xamlpath returns JSON whoseadditionalContextnames the tool; a.mdpath returns nothing.fieldcheck-20261009-170353(unoplatform/private#1190) ran this branch at b590d5d with an App MCP 1.4 pack that has the tool: the two Uno sessions calleduno_app_hot_reload_status6 and 10 times, every call reported the edit applied, and no restart in the second session was made to pick up an edit. The start count did not fall (26 and 17), because the remaining restarts are for launch arguments, persistence checks, clean data, startup code, platform switches and replaying a journey from a fresh app; that is for the App MCP to address, not this skill.Hook: the DevServer answers, not a reminder (3b25c7f, b9b0ab0)
The
PostToolUsehook now runsuno-devserver app hot-reload-status --no-start --file <edited> --waitForMs 8000(theappverbs from unoplatform/uno#25374) and tells the agent the verdict from the exit code:additionalContextwith the verdict line; assert withuno_app_find_elements, no build or restart.decision: blockwhose reason carries the DevServer text, including the compiler diagnostics.additionalContextsaying this is the one case foruno_app_closethenuno_app_start.uno-devserveron the PATH, no running host, host without the status tool): the previous reminder text, so Community and older App MCP setups behave as before.It never starts a DevServer, finds the solution by walking up from the edited file, and checks
app toolsfirst so a host without the tool answers in under a second.hooks.jsontimeout 10 → 15 s.Verified with the Debug CLI on real paths (other file types and files outside a solution print nothing; no host, and a host without the tool, print the reminder in under 1 s and never start a host) and with a stub CLI for exit 0, 1 and 3 (valid JSON, quotes, tabs and CRLF in the diagnostics escaped). The live applied/not applied/rude edit paths need an App MCP build with
uno_app_hot_reload_status, which was not available on the machine.🤖 Generated with Claude Code
https://claude.ai/code/session_01SYer42kcr3PXtoro9RDXEL