发布

  • [OPIK-6391] [FE] fix: send thread_model_id when adding thread comments (#6639)

    frostbyte_neo 发布于 2026-05-08 10:29:24 +00:00

    • [OPIK-6391] [FE] fix: send thread_model_id when adding thread comments

    ThreadAnnotatePanel was using the user-facing threadId as the URL path
    parameter when creating or batch-deleting thread comments. The backend
    endpoint resolves the thread by trace_threads.id (the UUID
    thread_model_id), so the lookup failed with 404 and the comment was not
    saved. Pass thread.thread_model_id explicitly and gate the panel render
    on the thread being loaded.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    • test(thread-panel): assert comment mutations route through thread_model_id

    Adds a regression test for ThreadAnnotatePanel that mocks the comment
    mutations and asserts createThreadCommentMutation and
    threadCommentsBatchDeleteMutation receive payloads carrying
    thread_model_id (not the user-facing thread_id). Catches the OPIK-6391
    regression directly.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件