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
flowCanvasChip-11665 test: the zh caption text is asserted before the flow label loads #37822
Filing gate: ① (a flaky test the seat met on a PR run) · Source: fleet (PR #37813, run 45941124060, job 140317738176)
What happens
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsx, the zh case: caption() returns as soon as findByTestId('auto-canvas-caption') finds the element, and line 164 asserts toHaveTextContent(/^每日摘要$/) synchronously. When the flow's label has not loaded yet, the chip still shows the API name nightly_digest and the case fails. It failed so on Test UI (12/16) of PR #37813, a PR that touches no ui/ file. The title assertion two lines below is already wrapped in waitFor.
Expected
The text assertion waits for the label the same way the title assertion does, so the case does not race the label fetch. The other cases in the file that read the label right after caption() get the same treatment where they can race.
Done when
The label-text assertions after caption() wait for the label (waitFor or findByText).
The case still fails if the header prints the API name instead of the label.
Grade: area:ux · bug · test-only · reach: a red Test UI shard on unrelated PRs · evidence: the job log above
Suggested-grade: p3
Size: S
Related: PR #37813, objectui#11665.
Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size XS; rationale: the flowCanvasChip-11665 test asserts the zh caption before the flow label loads, which turns Test UI red on unrelated PRs. It is a PR-CI flake that costs re-runs, like #37161, so p2 (filed p3). If it ejects a merge-queue build, it becomes p1.
Claim: PM loop round 4
Session: session_01L9qibx7DSQZnugnuX8CpCM
Account: os-tesla
Branch: claude/project-thread-ciejge
Worktree: objectstack-issue-37822
Domain: domain:ui
Seat: repo:objectstack#3
File surface: ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsx only (test-only; no changeset, since the file ships in no package; stop on breach and explain in the report)
Container & model: XS, mode:subagent, model: sonnet (dispatch-gates.mjs --tier on the test file at d7a6d7449d: no path-derived mandate; a mechanical test-only card whose correctness the test run itself judges → floor), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: test code in objectstack (the zh, en and API-name cases assert the chip text synchronously right after caption() returns, lines 164, 180, 192 at d7a6d7449d, while the title assertion at 168 already waits) | none: no gate catches a test that races its own fixture load | every PR whose Test UI shard runs app-shell (PR #37813 run 45941124060 failed on it while touching no ui/ file)
Thread-read: 7210538020
Premise: holds
Serial constraints cleared: no open PR touches the file or studio-design/StudioDesignSurface* (file scan of all 60 open PRs at 02:50Z); overlap-check.mjs re-runs before the first push
Area: o3-ux
Pre-claim lane: domain:ui card, test-only, kept in the zone (studio-design path; zone o3-studio informed through the seat at 01:20Z).
Pre-claim deps: no Blocked-by:.
Prior rulings read: check-prior-rulings.mjs --card 37822 --paths on the test file at d7a6d74 found no ruling hits; the card thread holds only the triage grade 7210538020.
os-dev-report (relayed by zone o3-ux) · 2026-11-28T05:09Z
The dev's relay pr_create was refused in this container, so the dev could not post this report or open the PR. After the maintainer's approval in the zone thread, the zone opened PR #38171 from the dev's payload, unchanged except for a dropped draft key that pr_create does not take (creates are drafts by default). The dev's report, condensed:
status: built. Branch claude/project-thread-ciejge at e2c71021. One file: ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsx, about +35 lines.
Premise holds. AutomationsPillar.tsx:1351 sets flowTitle = current ? label||name : flowName, so the chip prints the API name until the flow loads, and the synchronous zh and en reads after caption() raced it. The header-text reads raced too. All of them now sit in waitFor.
The API-name case passed vacuously on the placeholder. It now holds the load, releases it, and waits for auto-flow-meta before it asserts.
server.gate holds list and layered, because the label arrives through list. A new case asserts the API-name placeholder while the load is held and the label after release.
Tests: the file passes 5/5 and passed 20 of 20 consecutive runs. Ablation (flowTitle = flowName, then reverted) turns zh, en and the late-load case red. The API-name case stays green by design, since it is the fallback.
Gates: overlap-check exit 0, no PR named. The dispatch-gates --commands families pass locally, except that check-comment-mask-corpus, check:query-options-erasure and check:type-check-debt hit the 100s local cap and are NOT MEASURED; CI reads them. No changeset, because the file ships in no package (skip-changeset).
Delivered by PR #38171, merged 2026-11-28T08:28Z as a9062bb7, after L1 ACCEPT 7234969174. In the flowCanvasChip-11665 test, every label, title and header read after caption() now waits for the flow load. The API-name fallback case releases a held load and asserts only after auto-flow-meta is drawn, so it checks the real fallback rather than the placeholder. A new case pins the placeholder-then-label order. Both acceptance lines hold: the label reads wait, and an ablation where the header prints the API name turns the zh and en cases red. Nothing remains on this card. pm:dispatched is removed in this stroke.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Bug · priority:p2 ·
pm:queue· size XS; rationale: the flowCanvasChip-11665 test asserts the zh caption before the flow label loads, which turnsTest UIred on unrelated PRs. It is a PR-CI flake that costs re-runs, like #37161, so p2 (filed p3). If it ejects a merge-queue build, it becomes p1.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
Claim: PM loop round 4
Session:
session_01L9qibx7DSQZnugnuX8CpCMAccount:
os-teslaBranch:
claude/project-thread-ciejgeWorktree:
objectstack-issue-37822Domain:
domain:uiSeat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsxonly (test-only; no changeset, since the file ships in no package; stop on breach and explain in the report)Container & model:
XS,mode:subagent,model: sonnet (dispatch-gates.mjs --tier on the test file at d7a6d7449d: no path-derived mandate; a mechanical test-only card whose correctness the test run itself judges → floor),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
test code in objectstack (the zh, en and API-name cases assert the chip text synchronously right after caption() returns, lines 164, 180, 192 at d7a6d7449d, while the title assertion at 168 already waits) | none: no gate catches a test that races its own fixture load | every PR whose Test UI shard runs app-shell (PR #37813 run 45941124060 failed on it while touching no ui/ file)Thread-read: 7210538020
Premise: holds
Serial constraints cleared:
no open PR touches the file or studio-design/StudioDesignSurface* (file scan of all 60 open PRs at 02:50Z); overlap-check.mjs re-runs before the first pushArea:
o3-uxdomain:uicard, test-only, kept in the zone (studio-design path; zone o3-studio informed through the seat at 01:20Z).Blocked-by:.check-prior-rulings.mjs --card 37822 --pathson the test file at d7a6d74 found no ruling hits; the card thread holds only the triage grade 7210538020.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
os-dev-report (relayed by zone o3-ux) · 2026-11-28T05:09Z
The dev's relay
pr_createwas refused in this container, so the dev could not post this report or open the PR. After the maintainer's approval in the zone thread, the zone opened PR #38171 from the dev's payload, unchanged except for a droppeddraftkey thatpr_createdoes not take (creates are drafts by default). The dev's report, condensed:claude/project-thread-ciejgeate2c71021. One file:ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.flowCanvasChip-11665.test.tsx, about +35 lines.AutomationsPillar.tsx:1351setsflowTitle = current ? label||name : flowName, so the chip prints the API name until the flow loads, and the synchronous zh and en reads aftercaption()raced it. The header-text reads raced too. All of them now sit inwaitFor.auto-flow-metabefore it asserts.server.gateholdslistandlayered, because the label arrives throughlist. A new case asserts the API-name placeholder while the load is held and the label after release.flowTitle = flowName, then reverted) turns zh, en and the late-load case red. The API-name case stays green by design, since it is the fallback.overlap-checkexit 0, no PR named. Thedispatch-gates --commandsfamilies pass locally, except thatcheck-comment-mask-corpus,check:query-options-erasureandcheck:type-check-debthit the 100s local cap and are NOT MEASURED; CI reads them. No changeset, because the file ships in no package (skip-changeset).Generated by Claude Code
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM
Close-out · zone o3-ux · 2026-11-28T08:29Z
Delivered by PR #38171, merged 2026-11-28T08:28Z as
a9062bb7, after L1 ACCEPT 7234969174. In the flowCanvasChip-11665 test, every label, title and header read aftercaption()now waits for the flow load. The API-name fallback case releases a held load and asserts only afterauto-flow-metais drawn, so it checks the real fallback rather than the placeholder. A new case pins the placeholder-then-label order. Both acceptance lines hold: the label reads wait, and an ablation where the header prints the API name turns the zh and en cases red. Nothing remains on this card.pm:dispatchedis removed in this stroke.