chore: increase text file inline limit from 8000 to 32000 chars

11k char deployment logs were getting truncated, cutting off the
actual error. 32k is safe for 200k context window.
This commit is contained in:
Eyejoker
2026-03-14 02:34:34 +09:00
parent ae1b37694e
commit f388323987

View File

@@ -278,7 +278,7 @@ export class DiscordChannel implements Channel {
if (!res.ok) throw new Error(`Download failed: ${res.status}`);
let text = await res.text();
// Truncate very large files
const MAX_TEXT_LENGTH = 8000;
const MAX_TEXT_LENGTH = 32_000;
if (text.length > MAX_TEXT_LENGTH) {
text =
text.slice(0, MAX_TEXT_LENGTH) +