Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(plugin-gantt): a silent re-read that overtakes a changed query takes over its report (objectui#10633) - #10652

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-10633-gantt-silent-overtake
Sep 25, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-10633-gantt-silent-overtake

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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's reload() lets only the newest run commit (isCurrent()), and the newest run's silent flag decided whether a failure reports. The data-invalidation bus, the toolbar refresh and the four write-readbacks all call reload({ 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 same isCurrent()-guarded finally that clears the loading flags. The catch now 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 ObjectGantt and the real notifyDataChanged, in the root config's dom project. 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.

Run refreshing in flight first-query rows changed-query rows error refreshing at end
base f99f9cde7, changed query answers, then the re-read fails true true false false false
base, the re-read fails, then the changed query answers true true false false false
head, both orders true false false true false
base and head, a standalone silent re-read fails (control) true true n/a false false

The 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.mjs in 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 empty git diff HEAD.

Design Pins Why
(a) inherit inside reload(): this PR 16 passed
(b1) the bus re-read re-issued at its call site as { inPlace: true } while a report is owed 1 failed: the toolbar refresh row The toolbar refresh and the four write-readbacks call reload({ silent: true }) themselves, so each would need the same re-issue.
(b2) re-issued inside reload() as a plain non-silent run 2 failed: the chart is torn down (the GanttView instance reads unmounted in flight and 2 after) inPlace defaults to silent, so a non-silent re-issue swaps in the loading placeholder after the first paint. objectui#7237 ruling A′ rules that out.
(b3) re-issued inside reload() as non-silent, with inPlace carried over 16 passed The same behaviour as (a), reached by rewriting silent and 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 the inPlace default.

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 refreshing when 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)

Pin base f99f9cde7 head red under
the card's sequence: overtaken by an invalidation re-read that fails ⇒ reported (plus, in flight: the same chart, refreshing on) RED green A0, b2
the same, settled the other way round RED green A0
the overtaking re-read succeeds ⇒ the changed query's rows, no error, the same chart green green b2
the toolbar refresh overtakes the changed query and fails ⇒ reported RED green A0, b1
two re-reads in a row: the report passes down the chain RED green A0, A3
before the first paint: a re-read overtakes the initial load and fails ⇒ reported, not an empty chart RED green A0
control: a standalone silent re-read fails ⇒ quiet, the rows stay, the failure is logged green green A1
control: once the changed query has answered, a later re-read that fails stays quiet green green A1
control: a silent re-read overtakes another silent one and fails ⇒ quiet green green A1, A2

On base, with ObjectGantt.tsx at f99f9cde7 and the new pin file run against it: Tests 5 failed | 4 passed (9).

Ablations

Every leg ran on the committed source blob 79459f66bb80 and was restored to it, proven by blob and by an empty git diff HEAD.

  • A0, the fix reverted (reportsFailure = !silent), on HEAD 8f20311d9: Tests 5 failed | 4 passed (9). The five overtaking rows go red and the four controls stay green.
  • A1, the obligation never released (its finally line 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".
  • A2, inheriting from any pending run: 1 failed (the silent-over-silent control).
  • A3, inheriting one level only: 1 failed (two re-reads in a row).

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 --delete mode, and the reading above is from that re-run.

A1 to A3 and b1 to b3 ran at a918971fe. 8f20311d9 adds 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.tsx passes 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)

  • Dependency closure built first: pnpm exec turbo run build --filter='@object-ui/plugin-gantt^...' --concurrency=2 gave Tasks: 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 the tsconfig.test.json program (--listFilesOnly: 1 hit). The first run was red on TS7031, an implicit-any binding in the new test; 8f20311d9 repairs it.
  • Gates, each exit 0:
    • 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 name ObjectGantt.tsx. 6475-gantt-block-face-declared is about getGanttConfig's keys, and 6939-objectql-record-source-refinement is about getDataConfig's resolution order. I read both paragraphs. This diff touches neither function, so both still hold.
  • ESLint: the per-package eslint . that pnpm lint runs through turbo, from packages/plugin-gantt, with --format json, over 2 files.
    • ObjectGantt.tsx has the same per-rule counts as the base blob, piped through --stdin-filename at the same path. All are warnings and neither side has an error; react-hooks/exhaustive-deps is 1 on both sides.
    • The new test has 7 no-explicit-any warnings, the same stand-in shape as the sibling pin files.
    • eslint.config.js declares no parserOptions.project or projectService, so linting is not type-aware and this diff cannot change the verdict on any untouched file.
  • Governed surface: check-governed-queue-guard.mjs --test reports NOT GOVERNED for all 3 paths.

Siblings with the same shape: none

Outside ObjectGantt.tsx, every non-comment silent hit in packages/plugin-*/src is prose. As a control, the same git grep returns 8 non-comment hits in ObjectGantt.tsx. No sibling view has a silent reload mode, which agrees with the card: ObjectGrid has none.

Acceptance notes

  • Unchanged: suppose the stale changed query answers with rows and then the overtaking re-read fails. Those rows answer the same current query, read before the write, but they are discarded under the existing sequencing and the error shows. Letting a stale run commit when its query equals the current one would take a query-key comparison. That is a third design, neither of the two the card named, and it is not done here.

Written by the domain:ui seat #1 dev run, session session_01BA3nKVUwKQJf8DBxrSVtNC.


Generated by Claude Code

…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
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 2 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6475-gantt-block-face-declared.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    The gantt nested-block spelling of a gantt config ({ type: 'object-gantt', gantt: { … } }) had no mirror entry at all: it rode through BaseSchema's .passthrough() entirely unvalidated, and the published TypeScript never taught the shape either — an author writing gantt: { … } got no completion, no type checking, no error on a misspelt member. It was the 28th and last of the keys getGanttConfig (plugin-gantt/src/ObjectGantt.tsx) reads off the schema that objectui#6051 (PR feat(types,plugin-gantt): declare the flattened GanttConfig face ObjectGantt reads (#6051) #6472) did not declare — severed into its own card because, unlike the other 27, declaring it changes what a published tool refuses.

.changeset/6939-objectql-record-source-refinement.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    Both renderers resolve their records from one of three keys, in this order — getDataConfig in plugin-map/src/ObjectMap.tsx and plugin-gantt/src/ObjectGantt.tsx: data, then staticData, then objectName. Both mirrors required objectName alone, so a document authored on staticData drew correctly and was refused by safeValidateSchema — six catalog entries, three per component.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with f99f9cde7 (merge-base with origin/main): 2 file(s) changed outside .changeset/, read against 1500 pending declaration(s) that publish a body (2084 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3051.3 KB 3104.5 KB
Main entry chunk (gzip) 148.0 KB 350 KB
Entry file index-CCdDy9cf.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.57KB 6.15KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.17KB 10.58KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.52KB 3.45KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 546.99KB 130.83KB
core (index.js) 9.22KB 3.71KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.91KB 62.28KB
fields (index.js) 260.06KB 65.86KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 51.49KB 14.64KB
plugin-charts (index.js) 74.94KB 20.89KB
plugin-chatbot (index.js) 198.36KB 47.20KB
plugin-dashboard (index.js) 133.60KB 35.41KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 232.96KB 61.65KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 152.20KB 39.05KB
plugin-gantt (index.js) 169.71KB 41.93KB
plugin-grid (index.js) 215.37KB 58.92KB
plugin-kanban (index.js) 48.35KB 15.08KB
plugin-list (index.js) 114.58KB 28.31KB
plugin-map (index.js) 22.42KB 7.38KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.67KB 8.95KB
plugin-tree (index.js) 10.52KB 3.69KB
plugin-view (index.js) 87.84KB 21.96KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 116.21KB 38.14KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 25, 2026 14:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 9d89c6f Sep 25, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-10633-gantt-silent-overtake branch September 25, 2026 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

1 participant