发布

  • 2.0.4 da2bb2cf8f

    [OPIK-6073] [FE] feat: add per-variant Run/Stop button in Playground experiment mode (#6377)

    frostbyte_neo 发布于 2026-04-20 16:36:51 +00:00

    • [OPIK-6073] [FE] feat: add per-variant Run/Stop button in Playground experiment mode

    Variant editor cards now expose a Run/Stop button in experiment mode so a single
    variant can be re-run across all dataset items (or a scoped experiment in
    test-suite mode) without re-running every variant. Stopping one variant no longer
    affects others — per-variant running state replaces the shared stop flag used by
    processCombination, and abort-controller entries are tagged with their prompt
    id so stopSingle matches exactly instead of relying on key-suffix heuristics.

    Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

    • [OPIK-6073] [FE] fix: guard runSingleViaBackend after mutate and skip toast on abort

    Address PR review feedback:

    • Guard runSingleViaBackend: after mutateAsync resolves, check isRunningMap
      before entering scoped polling, so a Stop clicked during the experiment
      creation request doesn't transition the prompt back into a running state.
    • Skip destructive error toast on intentional AbortError in both poll catch
      blocks so Stop during polling no longer flashes a misleading error.

    Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

    • [OPIK-6073] [FE] refactor: extract shared handlePollError helper

    Both pollAssertionEvaluation and pollExperimentCompletion had near-
    identical catch blocks: finishPollScope, conditionally reset unscoped
    state, skip destructive toast on AbortError. Extract into a single
    handlePollError helper to remove duplication.

    Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com


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

    下载附件