Skip to content

fix(hooks): the Hot Reload hook says nothing before the app exists - #202

Merged
kazo0 merged 1 commit into
mainfrom
dev/vatsa/hook-silent-before-start
Oct 21, 2026
Merged

kazo0 merged 1 commit into
mainfrom
dev/vatsa/hook-silent-before-start

Conversation

@vatsashah45

Copy link
Copy Markdown
Contributor

Split out of #201, which keeps the uno-testing text changes.

What changed

With the DevServer CLI on the machine but no app connected yet, uno-devserver app hot-reload-status answers without an edit to … verdict and exit code 0, and hot-reload-edit.sh fell through to its no-CLI reminder. Every scaffolding edit before the first uno_app_start got one: 14 to 20 notes a session on the six catalog sessions of unoplatform/private#1214 and #1215, 32 to 59 hook notes in all, 4.5k to 8.4k tokens of hook text that stay in context for the rest of the session, and an agent that learned to skim what the hook says. Now a no-verdict answer prints nothing. The reminder still fires on a machine without the CLI, where nothing can answer.

hooks.json's description says so; Test-Hooks.ps1 gets the case.

Validated

Three catalog sessions on this change (unoplatform/private#1220): zero hook notes before the first start in each, hook text in context 3.2k to 5.3k tokens.

🤖 Generated with Claude Code

With the DevServer CLI present but no app connected yet, `hot-reload-status` answers without a verdict (exit code 0), and the hook fell through to its reminder on every scaffolding edit: 14 to 20 notes a session before the first `uno_app_start`, 4.5k to 8.4k persistent tokens of hook text, and an agent that learned to skim the hook's notes. Now a no-verdict answer prints nothing; the reminder stays for a machine without the CLI. `Test-Hooks.ps1` covers the case.

Validated on three catalog sessions (unoplatform/private#1220): zero notes before the first start, hook text in context down to 3.2k–5.3k tokens.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@kazo0
kazo0 merged commit 827d401 into main Oct 21, 2026
6 checks passed
@welcome

welcome Bot commented Oct 21, 2026

Copy link
Copy Markdown

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

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.

2 participants