Skip to content

flowCanvasChip-11665 test: the zh caption text is asserted before the flow label loads #37822

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

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.

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    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 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.

  3. added
    priority:p2
    and removed on Nov 27, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

    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.
    • Owes: L1 (L1-a thread); no L2 (no contract face).
  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM

    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).
    • api_writes 0, mcp_calls 0. Out-of-scope findings: none.

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    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 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.

  8. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions