-
[issue-6421] [FE] fix: truncate v1 SME threads list and surface items load errors (#6570)
发布于
2026-05-04 07:24:12 +00:00 Apply the same fix already shipped in v2 to the v1 SME annotation flow:
- Pass truncate=true to useThreadsList so heavy threads don't blow past
ClickHouse streaming limits and get the connection closed mid-stream
(the production "Premature end of chunk coded message body" failure
mode that surfaced as the misleading "all items processed" alert).
Detail views fetch full untruncated content on demand, so this is
functionally safe. - Capture isError from both list hooks and expose isItemsError on the
context, scoped to the queue's active scope (TRACE vs THREAD). - Split the previously combined !annotationQueue || isError check in
SMEFlowPage into three explicit branches: queue-error, no-queue, and
items-error (with retry). - Replace NoDataView's hasQueueId boolean with a variant discriminator
and add a dedicated items-error state with a retry action so users
see a real error instead of the misleading "all items processed"
alert.
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件
- Pass truncate=true to useThreadsList so heavy threads don't blow past