Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Simplify configuration code
James Murdzaa22b3bbb4a4e
diff --git a/libs/python/core/core/telemetry/posthog.py b/libs/python/core/core/telemetry/posthog.pyindex 3ba912925d..bbc3c137e7 100644--- a/libs/python/core/core/telemetry/posthog.py+++ b/libs/python/core/core/telemetry/posthog.py@@ -46,14 +46,6 @@ class PostHogTelemetryClient:not in {"1", "true", "yes", "on"})- @staticmethod- def _get_posthog_config() -> dict:- """Return PostHog configuration for anonymous telemetry (public credentials)."""- logger.debug("Using public PostHog configuration (from class method)")- return {- "api_key": PUBLIC_POSTHOG_API_KEY,- "host": PUBLIC_POSTHOG_HOST,- }# ------------------------------------------------------------------# Public helpers@@ -73,12 +65,10 @@ class PostHogTelemetryClient:if self.initialized:return True- posthog_config = self._get_posthog_config()-try:- # Initialize the PostHog client- posthog.api_key = posthog_config["api_key"]- posthog.host = posthog_config["host"]+ # Allow overrides from environment for testing/region control+ posthog.api_key = PUBLIC_POSTHOG_API_KEY+ posthog.host = PUBLIC_POSTHOG_HOST# Configure the clientposthog.debug = os.environ.get("CUA_TELEMETRY_DEBUG", "").lower() == "on"