clean: use updated data structure
Project CI / Repository checks (pull_request) Failing after 8s
Project CI / Backend tests (pull_request) Failing after 8s
Project CI / Frontend tests (pull_request) Successful in 1m7s
Project CI / Native shell tests (pull_request) Successful in 3m3s

This commit is contained in:
2026-07-22 19:02:58 +08:00
parent 1557149220
commit d8655e829a
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -76,9 +76,7 @@ export interface EditorAgentAttachmentRef {
}
export function createEditorAgentAttachmentRef(
input: Omit<EditorAgentAttachmentRef, 'label'> & {
label?: string | null;
},
input: EditorAgentAttachmentRef,
fallbackLabel: string = input.referenceId,
) {
return {
@@ -152,11 +152,11 @@ async function createPastedAgentImageAttachment(
objectKey: resource.objectKey ?? upload.objectKey,
imageSrc: resource.imageSrc,
thumbnailSrc: null,
label: resource.label ?? file.name,
// pasted file.name does not give more information
label: resource.label ?? '粘贴图片',
width: resource.width,
height: resource.height,
},
'粘贴图片',
);
}