mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-25 05:52:34 +00:00
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
This commit is contained in:
parent
4ca7c2104d
commit
1fb9f7c68c
1 changed files with 2 additions and 0 deletions
|
|
@ -9561,6 +9561,8 @@ class GatewayRunner:
|
||||||
mgr = CheckpointManager(
|
mgr = CheckpointManager(
|
||||||
enabled=True,
|
enabled=True,
|
||||||
max_snapshots=cp_cfg.get("max_snapshots", 50),
|
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()))
|
cwd = os.getenv("TERMINAL_CWD", str(Path.home()))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue