…kes over its report (objectui#10633)
`reload()` lets only the newest run commit, and `silent` decided whether a
failure reports. A data-invalidation re-read, the toolbar refresh or a
write-readback that started while a changed query was in flight made that
query's run stale; when the silent run then failed, the first query's rows
stayed up with no error and no refreshing state.
A run now owes a report when it is non-silent or when it supersedes a run
that still owes one (`reportOwedRef`); the current run releases it when it
settles. A standalone silent re-read stays quiet.
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
Fixes #10633
Clause-②: no
A silent re-read that overtakes a changed query still in flight now takes over that query's report. No prop, export or schema moves.
What changed
ObjectGantt'sreload()lets only the newest run commit (isCurrent()), and the newest run'ssilentflag decided whether a failure reports. The data-invalidation bus, the toolbar refresh and the four write-readbacks all callreload({ silent: true }). Suppose one of them starts while a changed query (a sort, filter or search change: non-silent, in place) is in flight. It re-reads the changed query and makes the changed run stale, which discards the changed run's answer and its failure. When the silent run then failed, it only logged. The chart ended on the FIRST query's rows, with no error and no refreshing state. That breaks the objectui#7237 contract: a failed CHANGED query is reported, and the rows on screen answer the previous query.Now a run owes a report when it is non-silent, or when it supersedes a run that still owes one (
reportOwedRef, set when a run starts). The current run releases it when it settles, in the sameisCurrent()-guardedfinallythat clears the loading flags. Thecatchnow reports when the run owes a report, where before it reported when the run was non-silent. A standalone silent re-read (nothing pending) owes nothing and behaves as before: it logs a failure and keeps its rows.Files:
packages/plugin-gantt/src/ObjectGantt.tsx:reload()and its run bookkeeping only.packages/plugin-gantt/src/ObjectGantt.silentOvertake-10633.test.tsx: new, 9 cases..changeset/10633-gantt-silent-overtake.md:'@object-ui/plugin-gantt': patch.Reproduction (the card's probe P1, re-run)
The probe used the real
ObjectGanttand the realnotifyDataChanged, in the root config'sdomproject. The sequence: first paint, then a sort change in flight, then an invalidation re-read that overtakes it. The two remaining settles were run in both orders: the stale changed query answers, and the re-read fails.f99f9cde7, changed query answers, then the re-read failsThe base rows match the card's reading exactly. The probe was a throwaway file and is not committed. The committed pins below carry the same sequences.
Inherit or re-issue: inherit, and why
Both designs were measured against the 16 pins: this file's 9, plus the 7 of PR objectui#10630. Each alternative is a mutation of the committed head through
ablation-replace.mjsin WRAP mode. The anchor must hit, and the landing is proven by the anchor count and a blob change. The restore is proven by the blob equalling HEAD and an emptygit diff HEAD.reload(): this PR{ inPlace: true }while a report is owedreload({ silent: true })themselves, so each would need the same re-issue.reload()as a plain non-silent runGanttViewinstance readsunmountedin flight and2after)inPlacedefaults tosilent, so a non-silent re-issue swaps in the loading placeholder after the first paint. objectui#7237 ruling A′ rules that out.reload()as non-silent, withinPlacecarried oversilentand restructuring the signature.Chosen: (a), the smallest change that holds every row: one ref and three lines in
reload(). The obligation lives in the run sequence, which is where the supersession happens, so one site covers every silent caller. It does not touch the signature or theinPlacedefault.The refreshing state: a claim assumption that did not hold
The claim asked that the inheriting run "show the refreshing state", and that a standalone silent re-read have "no refreshing flash". On base, a silent run is always in place and sets
refreshingwhen it starts. So the overtaking re-read already showed the refreshing state in flight (the probe's first column: true on base). A standalone silent re-read shows it too. This change leaves both as they are. The in-flight state is pinned: the chart stays mounted, no placeholder shows, and the refreshing state stays on after the stale changed query answers. The standalone control pins today's refreshing-while-in-flight, not the "no flash" that base does not have.Pins (
ObjectGantt.silentOvertake-10633.test.tsx)f99f9cde7On base, with
ObjectGantt.tsxatf99f9cde7and the new pin file run against it:Tests 5 failed | 4 passed (9).Ablations
Every leg ran on the committed source blob
79459f66bb80and was restored to it, proven by blob and by an emptygit diff HEAD.reportsFailure = !silent), on HEAD8f20311d9:Tests 5 failed | 4 passed (9). The five overtaking rows go red and the four controls stay green.finallyline deleted): 4 failed. They are the three new controls, plus PR objectui#10630's "a SILENT reload that fails after an error leaves the error on screen".A1's first attempt was a no-op. Its replacement text sat inside the anchor, so the tool refused on its own disk check (replacement count 1 to 1) and no test ran. It was re-run in
--deletemode, and the reading above is from that re-run.A1 to A3 and b1 to b3 ran at
a918971fe.8f20311d9adds only a type annotation to one predicate in the test file, and the source blob is the same at both.PR objectui#10630's pins
ObjectGantt.errorClears-10578.test.tsxpasses 7 of 7 on head, and under every leg except A1 (above). Its "why the error is not cleared when a reload STARTS" case still holds: the overtaking re-read now reports its own failure there, and that case asserts "an error", not a text.Local verification (HEAD
8f20311d9)pnpm exec turbo run build --filter='@object-ui/plugin-gantt^...' --concurrency=2gaveTasks: 12 successful, 12 total.pnpm exec vitest run packages/plugin-gantt/from the repo root:Test Files 79 passed (79),Tests 604 passed (604).pnpm --filter @object-ui/plugin-gantt type-check: exit 0, with the script name echoed. The new test is in thetsconfig.test.jsonprogram (--listFilesOnly: 1 hit). The first run was red on TS7031, an implicit-any binding in the new test;8f20311d9repairs it.check:control-bytes: OK.check:new-line-citations: "VERDICT new-cross-file-line-citations: 0 new citation(s)".check-changeset-presence: "2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)".changeset:check(the fixed group and no-major),check-changeset-overwrite,check:pending-changeset-literals.check:vi-mock-specifiers,check:vi-mock-inherit,check:vi-mock-override-shape,check:test-path-roots.check:changeset-claims(report-only): two pending changesets nameObjectGantt.tsx.6475-gantt-block-face-declaredis aboutgetGanttConfig's keys, and6939-objectql-record-source-refinementis aboutgetDataConfig's resolution order. I read both paragraphs. This diff touches neither function, so both still hold.eslint .thatpnpm lintruns through turbo, frompackages/plugin-gantt, with--format json, over 2 files.ObjectGantt.tsxhas the same per-rule counts as the base blob, piped through--stdin-filenameat the same path. All are warnings and neither side has an error;react-hooks/exhaustive-depsis 1 on both sides.no-explicit-anywarnings, the same stand-in shape as the sibling pin files.eslint.config.jsdeclares noparserOptions.projectorprojectService, so linting is not type-aware and this diff cannot change the verdict on any untouched file.check-governed-queue-guard.mjs --testreports NOT GOVERNED for all 3 paths.Siblings with the same shape: none
Outside
ObjectGantt.tsx, every non-commentsilenthit inpackages/plugin-*/srcis prose. As a control, the samegit grepreturns 8 non-comment hits inObjectGantt.tsx. No sibling view has a silent reload mode, which agrees with the card:ObjectGridhas none.Acceptance notes
Written by the
domain:uiseat #1 dev run, sessionsession_01BA3nKVUwKQJf8DBxrSVtNC.Generated by Claude Code