发布

  • [OPIK-4365] [BE] fix: stop deleting thread feedback scores on ThreadsReopened event (#5571)

    frostbyte_neo 发布于 2026-03-10 22:33:35 +00:00

    • [OPIK-4365] [BE] fix: stop deleting thread feedback scores on ThreadsReopened event

    Previously, when new traces were added to an existing thread, the
    ThreadsReopened event handler deleted all feedback scores (UI, SDK,
    and online scoring). This removes the deletion so scores are preserved
    when new messages are logged. The scoredAt reset is kept so online
    scoring still re-runs after the cooling period.

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

    • fix(test): use correct getExpectedThreads overload with FeedbackScore list

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

    • fix(test): ignore createdBy/lastUpdatedBy on thread feedback scores in assertions

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

    • fix(test): assert createdBy/lastUpdatedBy on expected scores instead of ignoring them

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

    • refactor: remove dead ThreadsReopened event and rename test class

    Address PR review feedback:

    • Remove ThreadsReopened event class, handler, and publishing code
      since the only subscriber was a no-op log statement
    • Rename test class ThreadReopeningManualScoreDeletion to
      ThreadReopeningScorePreservation

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


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

    下载附件