Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(composio): send the user's time zone to the connector module

M3gA-Mindb6c18a5611a0
diff --git a/crates/openhuman-core/src/modules/connectors.rs b/crates/openhuman-core/src/modules/connectors.rs
index 5282df67ae..24215d5639 100644
--- a/crates/openhuman-core/src/modules/connectors.rs
+++ b/crates/openhuman-core/src/modules/connectors.rs
@@ -73,10 +73,17 @@ pub fn module_config(config: &Config) -> Result<serde_json::Value, String> {
"composio backend mode is unavailable: no backend session token. Sign in first."
.to_string()
})?;
+ // The backend renders Composio results (Gmail timestamps) for the
+ // model; with the user's zone it prints local time beside UTC. A
+ // module before contract 1.9 ignores the field. It is part of the
+ // route fingerprint, so a zone change reconfigures on the next call.
+ let timezone =
+ crate::integrations::composio::googlecalendar_args::current_iana_timezone();
Ok(serde_json::json!({
"route": "proxy",
"base_url": client.backend_url,
"auth_token": client.auth_token,
+ "timezone": timezone,
"state_dir": state_dir,
}))
}