fix: preserve large Unicode drafts with bounded keepalive transport

This commit is contained in:
2026-10-29 23:08:09 +02:00
parent fa2ece10de
commit ed96fd10b9
7 changed files with 305 additions and 25 deletions
+2 -3
View File
@@ -299,7 +299,7 @@ export default function ContextEditor({
draft_sequence: savedSequence,
},
'POST',
draftBody.length < 60000,
true,
),
)
.then(() => {
@@ -318,8 +318,7 @@ export default function ContextEditor({
const body = latestDraft.current;
if (
!awaitingSavedContext.current &&
body !== confirmedDraftBody.current &&
body.length < 60000
body !== confirmedDraftBody.current
)
void contextApi(
'/investimentos/' + initial.case.id + '/contexto/rascunho',