From 1fb9f7c68c2d58951f8ce9ede9533b137e70ba92 Mon Sep 17 00:00:00 2001 From: Daniel Marta Date: Sat, 9 May 2026 20:54:36 +0000 Subject: [PATCH] fix(gateway): pass max_total_size_mb and max_file_size_mb to CheckpointManager The /rollback command handler in gateway/run.py was constructing CheckpointManager with only enabled and max_snapshots, omitting max_total_size_mb and max_file_size_mb that the __init__ expects. This caused a TypeError on every /rollback invocation when checkpoints were enabled. Fixes: NousResearch/hermes-agent#18841 --- gateway/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gateway/run.py b/gateway/run.py index 1ef57034fba..d8a28f491a2 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -9561,6 +9561,8 @@ class GatewayRunner: mgr = CheckpointManager( enabled=True, max_snapshots=cp_cfg.get("max_snapshots", 50), + max_total_size_mb=cp_cfg.get("max_total_size_mb", 500), + max_file_size_mb=cp_cfg.get("max_file_size_mb", 10), ) cwd = os.getenv("TERMINAL_CWD", str(Path.home()))