Keep CloudDrop upload logs in one document up to 4 MB
CI / verify (push) Canceled after 0s

Logs were split into a new CloudDrop document every 700 KB, so a
session log of about 1 MB appeared as two files. CloudDrop accepts
text documents up to 5 MB, so the limit is now 4 MB and the response
limit of the log API leaves room for JSON-escaped paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SucukdeluxeandClaude Opus 5.5 committed 2026-10-22 02:36:28 +02:00
1 parent d7814e1b48
commit d63a972591
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ class ClouddropLogApi {
let size = 0;
for await (const chunk of response.body) {
size += chunk.length;
if (size > 2 * 1024 * 1024) {
if (size > 10 * 1024 * 1024) {
response.body.destroy();
throw new CloudLogError('RESPONSE_TOO_LARGE');
}