The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(config): CI fixes and only Area/Location time zones
M3gA-Mind12f9ee543eae
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lockindex 8d118e07cd..3416d0e899 100644--- a/crates/openhuman-app/Cargo.lock+++ b/crates/openhuman-app/Cargo.lock@@ -4502,6 +4502,7 @@ dependencies = ["bytes","chacha20poly1305","chrono",+ "chrono-tz","directories 6.0.0","dirs 6.0.0","dotenvy",diff --git a/crates/openhuman-core/src/config/ops/ui.rs b/crates/openhuman-core/src/config/ops/ui.rsindex 8511c55692..395eb1bee9 100644--- a/crates/openhuman-core/src/config/ops/ui.rs+++ b/crates/openhuman-core/src/config/ops/ui.rs@@ -194,10 +194,8 @@ pub async fn apply_user_timezone(),};config.save().await.map_err(|e| e.to_string())?;- log::info!(- "[config] user time zone set: {}",- config.user_timezone.as_deref().unwrap_or("device")- );+ let chosen = config.user_timezone.as_deref().unwrap_or("device");+ log::info!("[config] user time zone set: {chosen}");let snapshot = snapshot_config_json(config)?;Ok(Outcome::new(snapshot,diff --git a/crates/openhuman-core/src/config/schema/types/time_zone.rs b/crates/openhuman-core/src/config/schema/types/time_zone.rsindex ad70bdf647..1f18044319 100644--- a/crates/openhuman-core/src/config/schema/types/time_zone.rs+++ b/crates/openhuman-core/src/config/schema/types/time_zone.rs@@ -7,8 +7,9 @@use super::Config;/// The IANA name `zone` normalises to (`Asia/Kolkata`), or `None` when it is-/// blank or not an IANA zone. Case and surrounding space are forgiven; an-/// abbreviation (`IST`) or an offset (`+05:30`) is not a zone.+/// blank or not an `Area/Location` IANA zone (or `UTC`). Case and surrounding+/// space are forgiven; an abbreviation (`IST`, and the legacy tzdata names+/// `EST`/`MST`/`GMT`) or an offset (`+05:30`) is not accepted.pub fn normalize_time_zone(zone: &str) -> Option<String> {let trimmed = zone.trim();if trimmed.is_empty() {@@ -20,7 +21,10 @@ pub fn normalize_time_zone(zone: &str) -> Option<String> {.copied().find(|tz| tz.name().eq_ignore_ascii_case(trimmed))})?;- Some(tz.name().to_string())+ // tzdata also carries legacy abbreviation-named zones (`EST`, `MST`,+ // `GMT`, `EST5EDT`): accept only `Area/Location` names, plus `UTC`.+ let name = tz.name();+ (name == "UTC" || name.contains('/')).then(|| name.to_string())}/// The device's IANA zone, when the host can resolve one.diff --git a/crates/openhuman-core/src/config/schema/types/time_zone_tests.rs b/crates/openhuman-core/src/config/schema/types/time_zone_tests.rsindex 3dbad2c8c2..4c3e55f98b 100644--- a/crates/openhuman-core/src/config/schema/types/time_zone_tests.rs+++ b/crates/openhuman-core/src/config/schema/types/time_zone_tests.rs@@ -11,7 +11,18 @@ fn iana_names_normalise_and_everything_else_is_refused() {Some("Asia/Kolkata"));assert_eq!(normalize_time_zone("UTC").as_deref(), Some("UTC"));- for bad in ["", " ", "IST", "+05:30", "Asia/Mumbai", "Mars/Olympus"] {+ for bad in [+ "",+ " ",+ "IST",+ "+05:30",+ "Asia/Mumbai",+ "Mars/Olympus",+ "EST",+ "mst",+ "GMT",+ "EST5EDT",+ ] {assert_eq!(normalize_time_zone(bad),None,diff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rsindex f7b6afc428..8f6275717f 100644--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs@@ -1814,6 +1814,7 @@ async fn worker_a_controller_schemas_are_fully_exposed() {"openhuman.config_get_runtime_flags","openhuman.config_get_sandbox_settings","openhuman.config_get_search_settings",+ "openhuman.config_get_user_timezone","openhuman.config_get_voice_server_settings","openhuman.config_reset_local_data","openhuman.config_resolve_api_url",@@ -1834,6 +1835,7 @@ async fn worker_a_controller_schemas_are_fully_exposed() {"openhuman.config_update_runtime_settings","openhuman.config_update_sandbox_settings","openhuman.config_update_search_settings",+ "openhuman.config_update_user_timezone","openhuman.config_update_voice_server_settings","openhuman.config_workspace_onboarding_flag_exists","openhuman.config_workspace_onboarding_flag_set",