From 249726599b248321cfb2ed6f74cf309b334c2746 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 2 Apr 2026 23:13:28 -0400 Subject: [PATCH] =?UTF-8?q?read=5Ftail=2064MB=20=E2=80=94=20just=20read=20?= =?UTF-8?q?the=20whole=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Images in the jsonl eat most of the byte budget. 64MB covers any realistic conversation log; compact() trims to fit. Co-Authored-By: Proof of Concept --- src/agent/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/runner.rs b/src/agent/runner.rs index c584657..9975d79 100644 --- a/src/agent/runner.rs +++ b/src/agent/runner.rs @@ -986,7 +986,7 @@ impl Agent { /// Returns true if the log had content to restore. pub fn restore_from_log(&mut self) -> bool { let entries = match &self.conversation_log { - Some(log) => match log.read_tail(8 * 1024 * 1024) { + Some(log) => match log.read_tail(64 * 1024 * 1024) { Ok(entries) if !entries.is_empty() => entries, _ => return false, },