From 2f62df1cc89a23a5bd30e1a3f68a39bcfce9665c Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 17 Jan 2026 05:37:47 +0000 Subject: Add heartbeat commits --- makima/src/daemon/config.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'makima/src/daemon/config.rs') diff --git a/makima/src/daemon/config.rs b/makima/src/daemon/config.rs index 512b822..476b57e 100644 --- a/makima/src/daemon/config.rs +++ b/makima/src/daemon/config.rs @@ -213,12 +213,21 @@ pub struct ProcessConfig { /// Bubblewrap sandbox configuration. #[serde(default)] pub bubblewrap: BubblewrapConfig, + + /// Interval in seconds between heartbeat commits (WIP checkpoints). + /// Set to 0 to disable. Default: 300 (5 minutes). + #[serde(default = "default_heartbeat_commit_interval", alias = "heartbeatcommitintervalsecs")] + pub heartbeat_commit_interval_secs: u64, } fn default_claude_command() -> String { "claude".to_string() } +fn default_heartbeat_commit_interval() -> u64 { + 300 // 5 minutes +} + fn default_max_tasks() -> u32 { 4 } @@ -235,6 +244,7 @@ impl Default for ProcessConfig { default_timeout_secs: 0, env_vars: HashMap::new(), bubblewrap: BubblewrapConfig::default(), + heartbeat_commit_interval_secs: default_heartbeat_commit_interval(), } } } -- cgit v1.2.3