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
ObjectGrid.autosave-35685 "an earlier save's Undo is guarded by the newest version" fails intermittently in Test UI on unrelated PRs #35999
Seen by the seat on two unrelated PRs within ten minutes on 2026-11-21. Comes from the #35685 autosave/undo work (PRs #35898, #35972) under epic #35683.
What fails
ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx:322, "an earlier save's Undo is guarded by the newest version of its record": getByText('A2') (near :334) does not find the cell text.
Every Test UI run on any PR can go red on this test, which costs a re-run and a seat judgment each time, and hides a real failure behind "it's the flaky one".
To do
Find the race: the test likely reads A2 synchronously after an async save/undo settles (a getByText where a findByText / waitFor belongs, or a fake-timer step that depends on scheduling). Read it against the CI shard's load, not only locally.
Fix the test's wait, or the component if it renders the newest version late for a real reason (then that is a bug, say so).
Run the file many times under load (for example --repeat or a loop with --pool=threads and CPU throttled) and show it holds.
Not doing
No skip or quarantine of the test.
Reader: area:ux (ui/packages/plugin-grid), the seat's b1-DB area.
Triage: lands in domain:ui (plugin-grid test) · pm:queue; rationale: area:build · Bug · ObjectGrid.autosave-35685.test.tsx:322 fails intermittently in Test UI on unrelated PRs (#35918, #35989 within ten minutes), costing re-runs and queue time; from the #35685 autosave/undo work → p2 (a flaky gate on every UI PR) · size S. ⛔ Fix the race, do not skip the test.
Claim: PM loop · 2026-11-21T10:24Z · area b1-DB (p2 bug derived from epic #35683).
Area: b1-DB
Session: session_01L6bhgW85kwjGaz7HqsmEuv (the b1-DB area thread; dev sub-agent aff0f51d6c85ade33)
Account: os-sales
Branch: claude/issue-35999-autosave-undo-race
Seat: repo:objectstack#1
Domain: domain:ui
File surface: ui/packages/plugin-grid/src/ObjectGrid.tsx; ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx; a changeset (@object-ui/plugin-grid patch).
Container & model: S, area sub-agent, model: opus, effort: medium
Clause-②: no (no export, prop or i18n key changes)
Metadata-protocol: none
Premise (area, read on main): holds, and it is a product race, not a slow test. The card's item 2 foresaw this ("a component that renders late for a real reason is a bug"). rowPatchesRef is synced in a passive effect, so after the second save paints, an undo in the same window reads the first save's row from the stale ref, rebases the patch on it, and the patched-row read drops the patch and paints the row as loaded. A user can reach it: two cells of one row saved, then two quick undos on a slow device or a large table; the screen is wrong until the next load, the server data is right. The load-based reproduction was not run (the shared verify lock was busy); the cause is from reading the code, and the build adds a deterministic test and a load re-read.
Basis: card #35999; S3 of #35685 (PR #35972, merged).
Scope, the seat's reading: write the ref where the patch is computed (not in an effect), so an undo always reads the latest saved row; add a deterministic regression test that undoes the moment the second save paints (a MutationObserver, not load), red when the fix is removed. The test-side flush (wrapping in act, skip-changeset) is not taken, because it would hide the defect.
Resume-from: none
Fold-or-serial: serial; no fold. #36023 S3 and S4 also edit ObjectGrid.tsx (in-cell keys, describeCell facts), not the autosave path; overlap-check.mjs runs before each push and the second to land merges main. L1 at L1-a. The PR carries Fixes #35999.
Activity
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(plugin-gridtest) ·pm:queue; rationale: area:build · Bug ·ObjectGrid.autosave-35685.test.tsx:322fails intermittently in Test UI on unrelated PRs (#35918, #35989 within ten minutes), costing re-runs and queue time; from the #35685 autosave/undo work → p2 (a flaky gate on every UI PR) · size S. ⛔ Fix the race, do not skip the test.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-21T10:24Z · area b1-DB (p2 bug derived from epic #35683).
Area: b1-DB
Session:
session_01L6bhgW85kwjGaz7HqsmEuv(the b1-DB area thread; dev sub-agentaff0f51d6c85ade33)Account:
os-salesBranch: claude/issue-35999-autosave-undo-race
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
ui/packages/plugin-grid/src/ObjectGrid.tsx;ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx; a changeset (@object-ui/plugin-gridpatch).Container & model:
S, area sub-agent,model: opus,effort: mediumClause-②: no (no export, prop or i18n key changes)
Metadata-protocol: none
Premise (area, read on main): holds, and it is a product race, not a slow test. The card's item 2 foresaw this ("a component that renders late for a real reason is a bug").
rowPatchesRefis synced in a passive effect, so after the second save paints, an undo in the same window reads the first save's row from the stale ref, rebases the patch on it, and the patched-row read drops the patch and paints the row as loaded. A user can reach it: two cells of one row saved, then two quick undos on a slow device or a large table; the screen is wrong until the next load, the server data is right. The load-based reproduction was not run (the shared verify lock was busy); the cause is from reading the code, and the build adds a deterministic test and a load re-read.Basis: card #35999; S3 of #35685 (PR #35972, merged).
Scope, the seat's reading: write the ref where the patch is computed (not in an effect), so an undo always reads the latest saved row; add a deterministic regression test that undoes the moment the second save paints (a MutationObserver, not load), red when the fix is removed. The test-side flush (wrapping in
act,skip-changeset) is not taken, because it would hide the defect.Resume-from: none
Fold-or-serial: serial; no fold. #36023 S3 and S4 also edit
ObjectGrid.tsx(in-cell keys,describeCellfacts), not the autosave path;overlap-check.mjsruns before each push and the second to land merges main. L1 at L1-a. The PR carriesFixes #35999.