Repository navigation
fix: keep the devtools' own reads of the app out of Health - #57
Open
devagrawal09 wants to merge 1 commit into
Open
devagrawal09 wants to merge 1 commit into
devagrawal09 wants to merge 1 commit into
Conversation
The graph and the tree read runtime node fields such as `_flags` and `_time`. The runtime lists a store's proxy beside plain signals, so those reads went through the proxy, and inside a strict-read scope of the app, such as an effect callback, each one was reported as STRICT_READ_UNTRACKED against the app. The registry walks, the change counters and the dev-hook listeners now run in `quietly`, which reads through Solid's `untrack` (it closes the strict-read window) and marks the read as the devtools'. Health drops anything the runtime reports while such a read runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lxsmnsyc
reviewed
Nov 25, 2026
lxsmnsyc
left a comment
Member
There was a problem hiding this comment.
Thanks for the fix. The problem is real and the untrack part works. Two items to resolve before approval.
Proof (run locally in review worktrees)
- I copied the first test in
src/dev-toolbar/quiet.dev.test.tswithout thequietlyimport. Onmainit fails: the strict-read warnings received are_config,_flags,_name,_statusFlags,_subs,_time,_value,_x. On this branch it passes. - The same test with the store removed passes on
main. So the store is needed for the symptom, which matches the changeset. - Full local run on the branch: 341 tests pass, format passes. CI is green (3 of 3).
pnpm buildandpnpm typecheckfail locally on bothmainand this branch (TS2883 and missing@solidjs/start-devtoolstypes), so I could not use them. CI covers them. - Size: +3.0kB raw, +1.5kB gzip across dist, mostly the new
quietchunk (1.1kB).
Should fix
src/dev-toolbar/issues/tracker.ts:123(if (isQuiet()) return;) is not tested against a real devtools read. The first test subscribes toOBSERVE.diagnosticsdirectly, so it passes throughuntrackalone. If I remove this line, only the second test fails, and that test builds a strict-read scope insidequietlyby hand. Please show a real devtools read that still raises a finding afteruntrack. If there is none, drop the filter andisQuiet. As written it also hides any real app finding raised while a dev-hook listener runs, for example insideonOwner..changeset/quiet-devtools-reads.md: the list "_flags,_time,_subsand_config" is incomplete. Onmainthe test also reports_name,_statusFlags,_valueand_x. Say "such as", or list all of them. The sentence "on a store those reads went through its proxy" is the cause. I confirmed only that the warnings need a store in the app. I did not confirm the proxy path. Either keep it as "with a store in the app" or add the evidence.
Nits
src/dev-toolbar/quiet.tscomment says "the runtime lists them beside plain signals". Say where (which registry list) so the next reader can check it.- Other devtools reads of node fields are not wrapped:
activity/model.ts:898(_value),activity/detail.tsx:308. They run from UI code, not inside app scopes, so this is probably fine. Please confirm.
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.
What and why
Run devtools registry walks, change counters, and dev-hook listeners through Solid's
untrack, and exclude diagnostics raised during those reads from Health. Reading runtime fields through a store proxy inside an app's strict-read scope could otherwise attribute the devtools' ownSTRICT_READ_UNTRACKEDwarnings to the app.Tests
Added regression coverage for devtools reads in a strict-read scope.
pnpm format:check,pnpm build,pnpm typecheck,pnpm test(341 passed),pnpm check, andpnpm test:e2e(30 passed) all passed.