huskies: merge 856

This commit is contained in:
dave
2026-04-29 21:28:41 +00:00
parent db526bbdb2
commit a7b1572693
13 changed files with 319 additions and 36 deletions
+16
View File
@@ -125,6 +125,14 @@ pub struct ProjectConfig {
/// Example: `gateway_project = "huskies"`.
#[serde(default)]
pub gateway_project: Option<String>,
/// Whether the notification listener pushes status messages to chat rooms.
///
/// Set to `false` for quiet mode: all WatcherEvent-driven chat pushes
/// (stage transitions, agent started/completed, blocked, merge failures)
/// are suppressed. Other bot functionality (commands, responses) is
/// unaffected. Default: `true`.
#[serde(default = "default_status_push_enabled")]
pub status_push_enabled: bool,
}
/// Configuration for the filesystem watcher's sweep behaviour.
@@ -192,6 +200,10 @@ fn default_whatsapp_status_consumer() -> bool {
true
}
fn default_status_push_enabled() -> bool {
true
}
fn default_max_mesh_peers() -> usize {
3
}
@@ -336,6 +348,7 @@ impl Default for ProjectConfig {
max_mesh_peers: default_max_mesh_peers(),
gateway_url: None,
gateway_project: None,
status_push_enabled: default_status_push_enabled(),
}
}
}
@@ -424,6 +437,7 @@ impl ProjectConfig {
max_mesh_peers: default_max_mesh_peers(),
gateway_url: None,
gateway_project: None,
status_push_enabled: default_status_push_enabled(),
};
validate_agents(&config.agent)?;
return Ok(config);
@@ -463,6 +477,7 @@ impl ProjectConfig {
max_mesh_peers: default_max_mesh_peers(),
gateway_url: None,
gateway_project: None,
status_push_enabled: default_status_push_enabled(),
};
validate_agents(&config.agent)?;
Ok(config)
@@ -490,6 +505,7 @@ impl ProjectConfig {
max_mesh_peers: default_max_mesh_peers(),
gateway_url: None,
gateway_project: None,
status_push_enabled: default_status_push_enabled(),
})
}
}