fix: preserve immutable UI deliveries through retry and reload

This commit is contained in:
haelyra committed 2026-11-19 18:37:28 -05:00
1 parent 52fbaed23e
commit 8cb860ac28
9 files changed
+419 -68

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ const UI_PROFILE = {
const ack = ackIds.length ? ` --ack ${ackIds.join(',')}` : '';
const remaining = appliedItems.some(item => !ackIds.includes(item.id))
? ' Resolve any other Apply batches separately; draining them does not acknowledge them.' : '';
if (ackIds.length > 50) return `Incorporate the latest snapshot at ${applied.exportPath}, then acknowledge its represented IDs in groups of at most 50: ${ackIds.join(',')}. Handle each await result before acknowledging the next group.${remaining}`;
return `The human applied ${applied.editCount} edit(s) to the preview. Rewrite the mockup file from ${applied.exportPath} (keep it self-contained), then run \`ecc-ui-canvas await <file>${ack} --reply "<what you changed>"\` only after those batches are incorporated, to keep listening.${remaining}`;
}
if (result.sessionEnded) {