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
test(ui): two Test UI cases landed today each red once on a main push and green on the next — refusedLeafUnsaved-29113 and App.permissionsWave-29114 #29468
Filed by triage from the main-push readings. ⛔ Not a claim. Each case was red once and green on the next head, so it is not a standing main red. Standing ruling: 「平台测试清单反复变红,肯定要修啊」. A test that reds main intermittently is fixed, never retried away.
Readings
Test (ui/)
Red on
Run
Signature
packages/app-shell/src/views/studio-design/StudioDesignSurface.refusedLeafUnsaved-29113.test.tsx › "a refused report save makes a reload and the pillar link ask; a save that lands clears it"
AssertionError: expected false to be true (case ran 1822 ms)
apps/console/src/__tests__/App.permissionsWave-29114.test.tsx › "/auth/me/permissions leaves in the organization/list wave when the session names the active organization"
AssertionError: expected [] to have a length of 1 but got +0
Both files landed today, with #29113 and #29114. The heads after each red were green on the same shard plan. Neither was reproduced locally by triage.
Wanted
For each file, reproduce under load: repeated runs, --sequence.shuffle, and a shard-sized parallel run. Name the race, which is likely an un-awaited render or request wave, or a fixed timeout.
Fix the test or the code it pins, so the assertion waits on the event it means.
⛔ No retry, no skip, no quarantine.
One PR per file is fine. Report the reproduction count before and after.
Reader who acts: domain:ui.
Dedupe: searched both file names; only their landing cards #29113 and #29114 (closed). No queue-flake anchor names either. New.
Claim: PM loop round 14 · 2026-11-02T16:01Z
Session: session_01QsR2jRAnis8Swqnj1Aw3B8 (card thread, os-dev); dispatched by seat session session_01QsR2jR7ZFkpqmm4U8S1f9y
Account: zhuangjianguo
Branch: claude/project-thread-wozppz (platform-assigned to the card thread; it can push only this branch)
Worktree: objectstack-issue-29468
Domain: domain:ui
Seat: domain:ui#4
File surface: ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.refusedLeafUnsaved-29113.test.tsx and ui/apps/console/src/__tests__/App.permissionsWave-29114.test.tsx (test-only; product source is out of surface, stop and report if the race is there) (stop on breach; explain in the report)
Container & model: S, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: default
Clause-②: no
Metadata-protocol: none
Responsibility: two Test UI cases landed today each went red once on main and green on the next head, so main can red without a code change | reproduce each under load, name the race, make each assertion wait on the event it means, with before/after counts | every ui PR author and the merge queue, which a flaky shard holds up
Thread-read: none
Premise: holds (red once each on main57cde8cb run 41448496602 and eb123b7c run 41472071655, per triage)
Serial constraints cleared: none
{
"issue": 29468,
"status": "done",
"branch": "claude/project-thread-wozppz",
"pr": "https://github.com/objectstack-ai/objectstack/pull/29532",
"head": "3d6225a8",
"session": "session_01QsR2jRAnis8Swqnj1Aw3B8",
"premise_still_valid": true,
"summary": "Both reds are one test race: a value written by a React passive effect, read in the tick after the commit the test awaited. Studio: reloadAsks() read right after the refusal banner shows; the beforeunload guard is installed two effect passes later (pillar onDirtyChange effect, then the surface's listener effect). Console: launcherCalls() read right after home-page shows; LauncherAppsProvider asks /me/apps from its effect. When React's scheduler yields after the commit, the effects run from a setImmediate continuation, and on a loaded box Testing Library's 1 ms waitFor drain timer fires first. Fix: each read waits on its own outcome (untilReloadAsks(expected) on the three bare reads in the 29113 file; waitFor(launcherCalls 1) + settle() in the 29114 file). No product source changed.",
"files_changed": [
"ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.refusedLeafUnsaved-29113.test.tsx (+15/-3)",
"ui/apps/console/src/__tests__/App.permissionsWave-29114.test.tsx (+5/-0)"
],
"line_budget": "20 additions, 3 deletions, 2 files; under the 3000-line threshold",
"tests": "Before (base 8ca9dd7b, test file copied N times into one vitest run, --maxWorkers=4 --sequence.shuffle, 4 to 12 node CPU hogs, 4-core box): 29113 target case red 1/80 at line 279; 29114 target case red 1/36 at line 230 (both the CI lines). After (392359f6, same load): 0/32 and 0/36. Mechanism probe (scratch preload, scheduler continuation performWorkUntilDeadline delayed 2 or 3 ms via setTimeout): base red 14/20 (29113, all line 279) and 15/20 (29114, all line 230); fixed 0/20 each. Ablations via scripts/ablation-replace.mjs (anchor 1 to 0, restored, git diff HEAD empty): StudioDesignSurface.tsx onDirtyChange(navDirty || refusedUnsent) to (navDirty) reds the fixed 29113 file (2 failed, 2 passed); App.tsx ConsolePermissionsRequest removed reds the fixed 29114 file (2 failed, 2 passed). Whole files on 3d6225a8: 2 files, 8 tests passed. Lint: pnpm --filter @object-ui/app-shell lint and @object-ui/console lint exit 0, no warning on either file. turbo type-check app-shell + console: 72 tasks exit 0 (3d6225a8).",
"gates": "dispatch-gates --commands: 24 derived at 392359f6, all exit 0 (check-closing-keyword-parity on the PR body, its --self-test, check-comment-mask-corpus, check-sdui-manifest + --self-test, spec check:duration-unit-keys, check:cross-package-test-inputs, dispatcher-error-vocabulary, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, published-files, query-options-erasure, refd-timer-probe, skill-identifier-liveness, test-source-alias, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher, pnpm --dir ui exec vitest run scripts/ 169 passed 2 skipped). --ran: 24 derived, 24 run, 0 NOT-MEASURED, 0 UNRUN. Rerun at merged head 3d6225a8, exit 0: type-check-coverage, query-options-erasure, type-check-debt, check-sdui-manifest, nul-bytes. Body gates exit 0: check-changeset-no-major, check-adr-0087-registration, check-partof-closing-keyword. PR check-runs: in_progress at report time.",
"dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
"deviations": [
"Shard-sized run: used the --maxWorkers load beside CPU hogs (the brief's second option), not the planShards file set.",
"Derived gates ran at 392359f6; after merging main (3d6225a8, no touched-file overlap) only the ratchet subset plus sdui-manifest and nul-bytes were rerun.",
"PR body footer uses the repo's session-URL form, not the harness's alternative line; the harness attribution comment is the body's first line (reported, not mine)."
],
"mcp_calls": "6, all reads: issue_read x2 (get, get_comments), get_job_logs x2, pull_request_read x1 (get, label read-back), get_session x1 (not GitHub)",
"api_writes": "2: fleet-write relay pr_create (run 41495131135, PR 29532, label skip-changeset read back); this os-dev-report comment via post-stamped. Plus git push (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Seat review · 2026-11-02T18:38Z · PR #29532 at 3d6225a8: ACCEPT 6585209945 (on the PR; Clause-②: no, test-only, no contract review owed). It goes to the merge queue now.
Activity
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Claim: PM loop round 14 · 2026-11-02T16:01Z
Session:
session_01QsR2jRAnis8Swqnj1Aw3B8(card thread, os-dev); dispatched by seat sessionsession_01QsR2jR7ZFkpqmm4U8S1f9yAccount:
zhuangjianguoBranch:
claude/project-thread-wozppz(platform-assigned to the card thread; it can push only this branch)Worktree:
objectstack-issue-29468Domain:
domain:uiSeat:
domain:ui#4File surface:
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.refusedLeafUnsaved-29113.test.tsxandui/apps/console/src/__tests__/App.permissionsWave-29114.test.tsx(test-only; product source is out of surface, stop and report if the race is there) (stop on breach; explain in the report)Container & model: S,
mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate),effort: defaultClause-②: no
Metadata-protocol: none
Responsibility:
two Test UI cases landed today each went red once on main and green on the next head, so main can red without a code change | reproduce each under load, name the race, make each assertion wait on the event it means, with before/after counts | every ui PR author and the merge queue, which a flaky shard holds upThread-read: none
Premise: holds (red once each on
main57cde8cbrun 41448496602 andeb123b7crun 41472071655, per triage)Serial constraints cleared: none
Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jRAnis8Swqnj1Aw3B8
os-dev-report
{ "issue": 29468, "status": "done", "branch": "claude/project-thread-wozppz", "pr": "https://github.com/objectstack-ai/objectstack/pull/29532", "head": "3d6225a8", "session": "session_01QsR2jRAnis8Swqnj1Aw3B8", "premise_still_valid": true, "summary": "Both reds are one test race: a value written by a React passive effect, read in the tick after the commit the test awaited. Studio: reloadAsks() read right after the refusal banner shows; the beforeunload guard is installed two effect passes later (pillar onDirtyChange effect, then the surface's listener effect). Console: launcherCalls() read right after home-page shows; LauncherAppsProvider asks /me/apps from its effect. When React's scheduler yields after the commit, the effects run from a setImmediate continuation, and on a loaded box Testing Library's 1 ms waitFor drain timer fires first. Fix: each read waits on its own outcome (untilReloadAsks(expected) on the three bare reads in the 29113 file; waitFor(launcherCalls 1) + settle() in the 29114 file). No product source changed.", "files_changed": [ "ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.refusedLeafUnsaved-29113.test.tsx (+15/-3)", "ui/apps/console/src/__tests__/App.permissionsWave-29114.test.tsx (+5/-0)" ], "line_budget": "20 additions, 3 deletions, 2 files; under the 3000-line threshold", "tests": "Before (base 8ca9dd7b, test file copied N times into one vitest run, --maxWorkers=4 --sequence.shuffle, 4 to 12 node CPU hogs, 4-core box): 29113 target case red 1/80 at line 279; 29114 target case red 1/36 at line 230 (both the CI lines). After (392359f6, same load): 0/32 and 0/36. Mechanism probe (scratch preload, scheduler continuation performWorkUntilDeadline delayed 2 or 3 ms via setTimeout): base red 14/20 (29113, all line 279) and 15/20 (29114, all line 230); fixed 0/20 each. Ablations via scripts/ablation-replace.mjs (anchor 1 to 0, restored, git diff HEAD empty): StudioDesignSurface.tsx onDirtyChange(navDirty || refusedUnsent) to (navDirty) reds the fixed 29113 file (2 failed, 2 passed); App.tsx ConsolePermissionsRequest removed reds the fixed 29114 file (2 failed, 2 passed). Whole files on 3d6225a8: 2 files, 8 tests passed. Lint: pnpm --filter @object-ui/app-shell lint and @object-ui/console lint exit 0, no warning on either file. turbo type-check app-shell + console: 72 tasks exit 0 (3d6225a8).", "gates": "dispatch-gates --commands: 24 derived at 392359f6, all exit 0 (check-closing-keyword-parity on the PR body, its --self-test, check-comment-mask-corpus, check-sdui-manifest + --self-test, spec check:duration-unit-keys, check:cross-package-test-inputs, dispatcher-error-vocabulary, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, published-files, query-options-erasure, refd-timer-probe, skill-identifier-liveness, test-source-alias, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher, pnpm --dir ui exec vitest run scripts/ 169 passed 2 skipped). --ran: 24 derived, 24 run, 0 NOT-MEASURED, 0 UNRUN. Rerun at merged head 3d6225a8, exit 0: type-check-coverage, query-options-erasure, type-check-debt, check-sdui-manifest, nul-bytes. Body gates exit 0: check-changeset-no-major, check-adr-0087-registration, check-partof-closing-keyword. PR check-runs: in_progress at report time.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "deviations": [ "Shard-sized run: used the --maxWorkers load beside CPU hogs (the brief's second option), not the planShards file set.", "Derived gates ran at 392359f6; after merging main (3d6225a8, no touched-file overlap) only the ratchet subset plus sdui-manifest and nul-bytes were rerun.", "PR body footer uses the repo's session-URL form, not the harness's alternative line; the harness attribution comment is the body's first line (reported, not mine)." ], "mcp_calls": "6, all reads: issue_read x2 (get, get_comments), get_job_logs x2, pull_request_read x1 (get, label read-back), get_session x1 (not GitHub)", "api_writes": "2: fleet-write relay pr_create (run 41495131135, PR 29532, label skip-changeset read back); this os-dev-report comment via post-stamped. Plus git push (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Seat review · 2026-11-02T18:38Z · PR #29532 at
3d6225a8: ACCEPT 6585209945 (on the PR;Clause-②: no, test-only, no contract review owed). It goes to the merge queue now.Generated by Claude Code