Repository navigation
Fix Canvas and UMAP run page reading each other's points - #367
Merged
Merged
Conversation
fetchUmapPoints and fetchUmapPointsForRun both registered "umap-points", so Canvas and the run page read each other's cache entry with the wrong shape. Canvas crashed and the run page showed no points. Delete the second query and fail the tests on any repeated query name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fail the test on router imports and call shapes the scan cannot read. Keep the run page's dimensions badge live, and drop the removed query from the MCP parity matrix. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
byronwall
force-pushed
the
claude/umap-points-one-query
branch
from
November 28, 2026 06:22
be35fdb to
e222e32
Compare
This was referenced Nov 28, 2026
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.
Moving between Canvas and a UMAP run page no longer breaks either one. Both now read points through one query.
Before: The fault reproduced. Opening Canvas after a run page showed "Something went wrong: points is not iterable". Opening a run page from Canvas showed "0 points".
After: Canvas draws its regions and the run page shows all its points, in both directions and after Back.
Cause
fetchUmapPointsandfetchUmapPointsForRunboth registered the query nameumap-points. The router caches by name and arguments, so one page got the other page's cached value in the wrong shape. This PR deletesfetchUmapPointsForRun.Proof
Canvas, then the UMAP page, then the run: 0 points before, 12 points after.
Run page, then Canvas: crash before, the region and its 12 notes after.
One browser script, run before and after the fix, on
pnpm devwith an isolated audit database and one synthetic 12-point run:The new test
tests/unit/query-keys.test.tsfails when a query name undersrc/repeats, or when it cannot read a router query registration. On the old sources it fails with:pnpm lintexits 0 (warnings only),pnpm type-checkpasses, andpnpm testgives 925 passed, 86 skipped (database tests, noTEST_DATABASE_URL).Codex review round 1 on the first commit passed (no P0 or P1 in scope). The second commit fixes its three in-scope findings: gaps in the new test, a dimensions badge that could keep the previous run's value, and a stale line in
mcp-parity.md. Closing the review added the stricter test. No second round ran. After #361 and #362 merged, the branch was rebased on them. The conflicts were indetail-types.tsand the run page, andUmapPointnow comes fromumap.queries.ts. Lint, type-check, tests and the browser script passed again on the rebased code. The screenshots are from before the rebase.Limits
Open findings
awaitand is not tracked. Pre-existing: same call order on main.🤖 Generated with Claude Code