移除队列标签不可达兜底分支

队列标签统一复用 canonical content 的文本派生。

删除不会被现有引用类型触发的附件和素材兜底文案。
This commit is contained in:
2026-09-18 11:36:10 +08:00
parent b73a329b2c
commit 4ae5ab14fa
@@ -88,17 +88,9 @@ export function queuedChatTurnLabel(
const text = directCodexContentToPromptText(turn.userItem.content, assets)
.trim()
.replace(/\s+/gu, ' ');
if (text) {
return text.length > 24 ? `${text.slice(0, 24)}` : text;
}
const attachment = turn.userItem.content.find(
(part) => part.type === 'agc_attachment_reference',
);
if (attachment?.type === 'agc_attachment_reference') {
return `附件 · ${attachment.name || '未命名'}`;
}
if (turn.userItem.content.some((part) => part.type !== 'input_text')) {
return '素材引用';
}
return '未命名消息';
return text
? text.length > 24
? `${text.slice(0, 24)}`
: text
: '未命名消息';
}