diff --git a/apps/code/src/renderer/features/message-editor/tiptap/useDraftSync.ts b/apps/code/src/renderer/features/message-editor/tiptap/useDraftSync.ts index eefe4e26a..c9bc8a2ad 100644 --- a/apps/code/src/renderer/features/message-editor/tiptap/useDraftSync.ts +++ b/apps/code/src/renderer/features/message-editor/tiptap/useDraftSync.ts @@ -24,6 +24,7 @@ function tiptapJsonToEditorContent(json: JSONContent): EditorContent { type: node.attrs.type, id: node.attrs.id, label: node.attrs.label, + pastedText: node.attrs.pastedText, }, }); } else if (node.type === "doc" && node.content) { @@ -79,6 +80,7 @@ function editorContentToTiptapJson(content: EditorContent): JSONContent { type: seg.chip.type, id: seg.chip.id, label: seg.chip.label, + pastedText: seg.chip.pastedText ?? false, }, }); } diff --git a/apps/code/src/renderer/features/message-editor/utils/content.ts b/apps/code/src/renderer/features/message-editor/utils/content.ts index 67acea8f5..5207e5547 100644 --- a/apps/code/src/renderer/features/message-editor/utils/content.ts +++ b/apps/code/src/renderer/features/message-editor/utils/content.ts @@ -13,6 +13,7 @@ export interface MentionChip { | "github_pr"; id: string; label: string; + pastedText?: boolean; } export interface FileAttachment {