Commit 3ad2d0c
fix(inference): hide run picker when the scenario has no runs on the date
Follow-up to the scenario-scoped run picker: the empty-coverage fallback
in restrictRunsToScenario() fired whenever scenarioRunIds was empty,
which conflated two cases — "no per-run coverage rows for the date"
(old data, where falling back is right) and "coverage exists but zero
runs for this scenario" (e.g. 2026-07-02 / 2026-07-04, where only
single_turn sweeps ran). In the second case the picker degraded to the
old leaky behavior and listed 6 / 3 single_turn runs under Agentic
Traces.
restrictRunsToScenario() now takes coverageKnown
(runConfigs.length > 0): when coverage data is unavailable it still
falls back to the changelog-scoped list, but when coverage exists and
the scenario has no runs it returns null so the picker hides — matching
the (empty) chart instead of offering meaningless "as of run" cutoffs.
中文:场景化运行选择器的后续修复:restrictRunsToScenario() 原先只要
scenarioRunIds 为空就触发回退,混淆了两种情况——"当天没有任何按运行
的覆盖数据行"(旧数据,回退是正确的)与"覆盖数据存在但该场景当天没有
任何运行"(如 2026-07-02 / 2026-07-04,当天只有 single_turn 运行)。
在第二种情况下选择器退化回旧的泄漏行为,在 Agentic Traces 场景下列出
6 / 3 个 single_turn 运行。现在 restrictRunsToScenario() 接收
coverageKnown(runConfigs.length > 0):覆盖数据缺失时仍回退到
changelog 范围列表;覆盖数据存在但该场景无运行时返回 null,选择器随之
隐藏——与(空的)图表保持一致,而不是提供无意义的 "as of run" 截断点。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 50bf336 commit 3ad2d0c
3 files changed
Lines changed: 52 additions & 23 deletions
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
401 | 404 | | |
402 | | - | |
403 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
404 | 413 | | |
405 | 414 | | |
406 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
562 | 572 | | |
563 | 573 | | |
564 | 574 | | |
565 | 575 | | |
566 | 576 | | |
567 | | - | |
| 577 | + | |
568 | 578 | | |
569 | 579 | | |
570 | 580 | | |
571 | 581 | | |
572 | 582 | | |
573 | 583 | | |
574 | | - | |
| 584 | + | |
575 | 585 | | |
576 | 586 | | |
577 | 587 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
581 | 593 | | |
582 | 594 | | |
583 | | - | |
584 | | - | |
| 595 | + | |
| 596 | + | |
585 | 597 | | |
586 | 598 | | |
587 | 599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
| 321 | + | |
314 | 322 | | |
315 | | - | |
| 323 | + | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
321 | | - | |
| 329 | + | |
322 | 330 | | |
323 | 331 | | |
324 | 332 | | |
| |||
0 commit comments