feat(editor): increase editor byte limit to 5MB and implement UTF-8 truncation for document content

This commit is contained in:
Anish Sarkar 2026-06-05 14:57:52 +05:30
parent cf8a2d0759
commit 640238e1af
4 changed files with 110 additions and 29 deletions

View file

@ -45,6 +45,7 @@ export type EditorContent = {
chunk_count: number;
truncated: boolean;
viewer_mode?: "plate" | "monaco";
editor_plate_max_bytes?: number;
};
// Same endpoint the UI hits when a user opens a document in the dashboard.