发布

  • [NA] [QA] fix: poll Threads count in thread-logging smoke to fix flake (#7363)

    frostbyte_neo 发布于 2026-07-07 09:48:20 +00:00

    The "Threads view groups a multi-turn conversation" t1 test read the
    Threads count card once (countThreads()) and asserted === 1. That card
    is an eventually-consistent aggregation, so on a slow-propagating staging
    deploy it can still read 0 when the assertion runs — which is exactly what
    failed on staging launch 82061 (Expected 1, Received 0, all 3 retries),
    after 20 consecutive passes across prod/staging/local. A flake, not a
    regression.

    • Poll countThreads() until it reaches 1 (15s budget) instead of a one-shot
      read.
    • waitForThreadsReady(threadId?) now waits for the seeded thread row when a
      threadId is passed, so the readiness gate tolerates thread aggregation lag
      rather than passing on any first row. Both tests pass their threadId.

    Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

    下载附件