You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fields: a failed first load of the lazy line-item grid chunk never recovers without a reload #36451
Follow-up from #36102 (PR #36417, the line-item grid body loads lazily). L1-d (7078535343) named it out of scope and the PR lists it for the seat to file. Filed by the seat. Parent: #36102.
What happens
React.lazy keeps a failed first load for the whole session. A host that renders GridField without first calling preloadGridField(), and whose first load of the fields-grid chunk fails once (a network blip, a deploy that swapped chunk names), shows the error boundary from then on. It does not recover until the page is reloaded, even when the chunk is reachable again. loadGridFieldWidget retries on failure, but the lazy component above it has already cached the rejection.
To do
Measure it: fail the chunk load once in a test, then let it succeed, and record whether a later mount of GridField renders.
If it does not recover, make the lazy face retry: build the lazy component from the retrying loader, or reset it after a failure, so a later mount loads again.
Check the console's other lazy faces built the same way (for example fields-date-picker) and list any with the same edge.
Acceptance
After one failed load of the fields-grid chunk, a later mount of GridField renders once the chunk is reachable, with no page reload.
Grade
p3 · domain:ui. An edge on a transient failure; a reload clears it.
Triage: lands in domain:ui (fields, lazy line-item grid chunk) · pm:queue; rationale: area:ux (it had no area) · Bug · a failed first load of the lazy line-item grid chunk never recovers without a full reload, so on a flaky network the line items stay empty. UX has no p3 → p2 (was p3) · size S.
Claim: PM loop · 2026-11-23T01:32Z · area s2-A (record page and its fields) of seat repo:objectstack#2; seat order of 2026-11-22T22:29Z after the maintainer's 「派」 for area:ux p2 cards with no topic parent
Area: s2-A
Session: session_01ADHkmNmMEXS4EzeVz9RjvD
Account: os-steve
Branch: claude/issue-36451-grid-field-lazy-retry
Worktree: objectstack-issue-36451
Domain: domain:ui
Seat: repo:objectstack#2
File surface: the line-item grid's lazy face: ui/packages/fields/src/widgets/GridField.ts (LazyGridFieldWidget, loadGridFieldWidget, preloadGridField), the grid entry of the form-field lazy loader map and its per-type React.lazy cache in ui/packages/fields/src/index.tsx (only if the same cached rejection lives there; not the export list), their tests, .changeset/, and the package README / content/docs/frontend/ sentence the fix makes false. Other lazy faces (card step 3) are measured and listed in the report, not changed. No packages/spec/**. (Stop on breach; explain in the report.)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: the console's line-item grid field (objectstack, ui/packages/fields) | reload the page | every user whose first load of the fields-grid chunk fails once, today
Thread-read: 7079370128
Premise: to be measured by the dev first (card step 1) — fail the chunk load once in a test, let it succeed, and record whether a later mount of GridField renders. If it recovers on main, stop and report.
Pre-claim lane: domain:ui — ui/packages/fields/**.
Pre-claim deps: no Blocked-by:. Parent #36102 (PR #36417) merged. Open PR #36587 touches ui/packages/fields/src/index.tsx only in the export list near line 5506; its file list read at this claim. This area's in-flight #36479 works in LookupField.tsx / lookupColumnDisplay.tsx and may touch LookupCellRenderer in index.tsx (line 2618), a different hunk. #36552 (same grid) stays queued behind this card. overlap-check runs before every push.
Prior rulings read: L1-d 7078535343 on PR #36417 named this edge out of scope and asked the seat to file it; no ruling constrains the fix.
Serial constraints cleared: #36587 and #36479 named above; #36552 held behind this card.
{
"issue": 36451,
"status": "done",
"branch": "claude/issue-36451-grid-field-lazy-retry",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36607",
"session": "session_01ADHkmNmMEXS4EzeVz9RjvD",
"premise_still_valid": true,
"summary": "Premise measured red on main: with the body chunk failing once then loading, a later mount of GridField and of getLazyFieldWidget('grid') both showed the error boundary (module-scope React.lazy caches the rejection). GridField/LineItemsField now render a not-yet-loaded body through GridFieldOnceLoaded, which asks the one loader from a committed mount's effect, throws a failed load to the nearest boundary and lets the next mount ask again (no React.lazy, and a discarded uncommitted render requests nothing, so a failing chunk cannot loop). The grid entry of the form-field loader map now resolves to that face, so field:grid and getLazyFieldWidget('grid') recover the same way. Patch changeset for @object-ui/fields; no docs sentence became false. A first design (swap a fresh React.lazy on rejection) was replaced before the PR after a test showed a mount still uncommitted when the load fails re-reads module state and retries silently, which would loop on a permanently failing chunk.",
"tests": "Head 66d9f58b1. Pins: GridField.test.tsx, new describe 'after one failed load of the body' inside the existing lazy-face block (2 cases). Premise/ablation (whole-file swap to BASE e17c2ae1a blobs, hash-verified on disk, restored with git checkout HEAD, git diff HEAD empty and HEAD blob hashes matched; tested code resolves from src, no dist): both files at main -> 2 failed | 107 skipped (later mount shows grid-load-failed, never line-items); face at main only -> 2 failed; index.tsx at main only -> 1 failed | 1 passed (form-field pin red). Fixed head: GridField.test.tsx 109 passed. Package: lock -c 'pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/ && pnpm --filter @object-ui/fields run type-check' -> Test Files 322 passed | 1 skipped (323), Tests 4893 passed | 7 skipped (4900), type-check ran (tsc --noEmit && tsc -p tsconfig.test.json), VERDICT command-exit 0. Step-3 measurement via a throwaway test (deleted): later mount still fails for FieldEditWidget date, richTextDisplay markdown, FilterConditionCell, getLazyFieldWidget('date').",
"gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 39 families at 66d9f58b1 (unchanged after fetching origin/main); all 39 exit 0; --ran reconciliation: 39 run, 0 NOT-MEASURED, 0 UNRUN (record at /mnt/project-files/objectstack-seat2/36451-gates-ran.txt). First pass: check:query-options-erasure and check:type-check-debt hit my 300s harness timeout (124), check:watch-hint-literal exit 1 once (cause not established); each re-run to completion exit 0. pnpm --dir ui exec vitest run scripts/ under lock: 172 files passed, VERDICT command-exit 0. ui check:new-line-citations: 0 new, exit 0. eslint on the 3 changed ui files: 0 errors. CI on PR #36607 head 66d9f58b1 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped x3), PR-body guards, Type Check (workspace, source gates, consumer gates, debt ledger) all in_progress; Test UI / Lint UI / Type Check UI / Build & E2E UI not yet listed. Not reported as green.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (fleet-write pr_create: create draft PR #36607 + POST issues/36607/assignees os-steve), and this os-dev-report comment via post-stamped. git push x4 (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: not measured at a public door (unit mount repro only; listed because the dispatch asked for card step 3) · evidence: module-scope React.lazy over a bare import() keeps a failed first load until reload; measured with a throwaway test (fail the chunk once, later mount still hits the boundary) for FieldEditWidget DatePickerEditWidget, richTextDisplay LazyMarkdownContent, FilterConditionCell LazyFilterConditionField, and the index.tsx per-type cache (getLazyFieldWidget, measured for date; registerField wraps every loader the same way); same construction, not measured: FieldEditWidget DateTimePickerEditWidget and RichTextPanelEditWidget, ImageField ImageCropperDialog · one family card covering all sites, the GridFieldOnceLoaded pattern is the fix shape · dedupe words: React.lazy rejection cached, chunk load failure reload, lazy field widget retry, getLazyFieldWidget failed load",
"carrier: none · noted in PR Acceptance notes: whether a browser re-fetches a module whose earlier dynamic import() failed is engine behaviour, not measured (vitest/jsdom only)"
]
}
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(fields, lazy line-item grid chunk) ·pm:queue; rationale: area:ux (it had no area) · Bug · a failed first load of the lazy line-item grid chunk never recovers without a full reload, so on a flaky network the line items stay empty. UX has no p3 → p2 (was p3) · size S.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD
Claim: PM loop · 2026-11-23T01:32Z · area s2-A (record page and its fields) of seat
repo:objectstack#2; seat order of 2026-11-22T22:29Z after the maintainer's 「派」 for area:ux p2 cards with no topic parentArea: s2-A
Session:
session_01ADHkmNmMEXS4EzeVz9RjvDAccount:
os-steveBranch:
claude/issue-36451-grid-field-lazy-retryWorktree:
objectstack-issue-36451Domain:
domain:uiSeat:
repo:objectstack#2File surface: the line-item grid's lazy face:
ui/packages/fields/src/widgets/GridField.ts(LazyGridFieldWidget,loadGridFieldWidget,preloadGridField), thegridentry of the form-field lazy loader map and its per-typeReact.lazycache inui/packages/fields/src/index.tsx(only if the same cached rejection lives there; not the export list), their tests,.changeset/, and the package README /content/docs/frontend/sentence the fix makes false. Other lazy faces (card step 3) are measured and listed in the report, not changed. Nopackages/spec/**. (Stop on breach; explain in the report.)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility: the console's line-item grid field (objectstack,
ui/packages/fields) | reload the page | every user whose first load of thefields-gridchunk fails once, todayThread-read: 7079370128
Premise: to be measured by the dev first (card step 1) — fail the chunk load once in a test, let it succeed, and record whether a later mount of
GridFieldrenders. If it recovers on main, stop and report.Pre-claim lane:
domain:ui—ui/packages/fields/**.Pre-claim deps: no
Blocked-by:. Parent #36102 (PR #36417) merged. Open PR #36587 touchesui/packages/fields/src/index.tsxonly in the export list near line 5506; its file list read at this claim. This area's in-flight #36479 works inLookupField.tsx/lookupColumnDisplay.tsxand may touchLookupCellRendererinindex.tsx(line 2618), a different hunk. #36552 (same grid) stays queued behind this card. overlap-check runs before every push.Prior rulings read: L1-d 7078535343 on PR #36417 named this edge out of scope and asked the seat to file it; no ruling constrains the fix.
Serial constraints cleared: #36587 and #36479 named above; #36552 held behind this card.
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD
os-dev-report
{ "issue": 36451, "status": "done", "branch": "claude/issue-36451-grid-field-lazy-retry", "pr": "https://github.com/objectstack-ai/objectstack/pull/36607", "session": "session_01ADHkmNmMEXS4EzeVz9RjvD", "premise_still_valid": true, "summary": "Premise measured red on main: with the body chunk failing once then loading, a later mount of GridField and of getLazyFieldWidget('grid') both showed the error boundary (module-scope React.lazy caches the rejection). GridField/LineItemsField now render a not-yet-loaded body through GridFieldOnceLoaded, which asks the one loader from a committed mount's effect, throws a failed load to the nearest boundary and lets the next mount ask again (no React.lazy, and a discarded uncommitted render requests nothing, so a failing chunk cannot loop). The grid entry of the form-field loader map now resolves to that face, so field:grid and getLazyFieldWidget('grid') recover the same way. Patch changeset for @object-ui/fields; no docs sentence became false. A first design (swap a fresh React.lazy on rejection) was replaced before the PR after a test showed a mount still uncommitted when the load fails re-reads module state and retries silently, which would loop on a permanently failing chunk.", "tests": "Head 66d9f58b1. Pins: GridField.test.tsx, new describe 'after one failed load of the body' inside the existing lazy-face block (2 cases). Premise/ablation (whole-file swap to BASE e17c2ae1a blobs, hash-verified on disk, restored with git checkout HEAD, git diff HEAD empty and HEAD blob hashes matched; tested code resolves from src, no dist): both files at main -> 2 failed | 107 skipped (later mount shows grid-load-failed, never line-items); face at main only -> 2 failed; index.tsx at main only -> 1 failed | 1 passed (form-field pin red). Fixed head: GridField.test.tsx 109 passed. Package: lock -c 'pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/ && pnpm --filter @object-ui/fields run type-check' -> Test Files 322 passed | 1 skipped (323), Tests 4893 passed | 7 skipped (4900), type-check ran (tsc --noEmit && tsc -p tsconfig.test.json), VERDICT command-exit 0. Step-3 measurement via a throwaway test (deleted): later mount still fails for FieldEditWidget date, richTextDisplay markdown, FilterConditionCell, getLazyFieldWidget('date').", "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 39 families at 66d9f58b1 (unchanged after fetching origin/main); all 39 exit 0; --ran reconciliation: 39 run, 0 NOT-MEASURED, 0 UNRUN (record at /mnt/project-files/objectstack-seat2/36451-gates-ran.txt). First pass: check:query-options-erasure and check:type-check-debt hit my 300s harness timeout (124), check:watch-hint-literal exit 1 once (cause not established); each re-run to completion exit 0. pnpm --dir ui exec vitest run scripts/ under lock: 172 files passed, VERDICT command-exit 0. ui check:new-line-citations: 0 new, exit 0. eslint on the 3 changed ui files: 0 errors. CI on PR #36607 head 66d9f58b1 at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped x3), PR-body guards, Type Check (workspace, source gates, consumer gates, debt ledger) all in_progress; Test UI / Lint UI / Type Check UI / Build & E2E UI not yet listed. Not reported as green.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (fleet-write pr_create: create draft PR #36607 + POST issues/36607/assignees os-steve), and this os-dev-report comment via post-stamped. git push x4 (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: not measured at a public door (unit mount repro only; listed because the dispatch asked for card step 3) · evidence: module-scope React.lazy over a bare import() keeps a failed first load until reload; measured with a throwaway test (fail the chunk once, later mount still hits the boundary) for FieldEditWidget DatePickerEditWidget, richTextDisplay LazyMarkdownContent, FilterConditionCell LazyFilterConditionField, and the index.tsx per-type cache (getLazyFieldWidget, measured for date; registerField wraps every loader the same way); same construction, not measured: FieldEditWidget DateTimePickerEditWidget and RichTextPanelEditWidget, ImageField ImageCropperDialog · one family card covering all sites, the GridFieldOnceLoaded pattern is the fix shape · dedupe words: React.lazy rejection cached, chunk load failure reload, lazy field widget retry, getLazyFieldWidget failed load", "carrier: none · noted in PR Acceptance notes: whether a browser re-fetches a module whose earlier dynamic import() failed is engine behaviour, not measured (vitest/jsdom only)" ] }fix(fields): a failed first load of the line-item grid body recovers …