feat: forward automation telemetry context (#1917)

* feat: forward telemetry context to automations

Co-authored-by: openhands <openhands@all-hands.dev>

* feat: sync automation telemetry consent

Co-authored-by: openhands <openhands@all-hands.dev>

* fix: default automation telemetry key in launchers

Co-authored-by: openhands <openhands@all-hands.dev>

* fix: bake production telemetry defaults into npm package

Co-authored-by: openhands <openhands@all-hands.dev>

* fix: dedupe automation consent sync

Co-authored-by: openhands <openhands@all-hands.dev>

* chore: bump automation version to 1.3.0

Co-authored-by: openhands <openhands@all-hands.dev>

---------

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Rohit Malhotra
2026-07-24 05:47:26 +00:00
committed by GitHub
co-authored by openhands
parent e45376f98e
commit 22fe594133
18 changed files with 519 additions and 51 deletions
+15
View File
@@ -72,6 +72,21 @@ jobs:
VITE_POSTHOG_API_KEY: ${{ vars.POSTHOG_PROD_KEY }}
run: npm run build:lib
- name: Bake package telemetry defaults
env:
# The CLI launcher runs after install, so it cannot read the build-time
# Vite env baked into the browser bundle. Store the public production
# key in the packaged defaults used by bin/agent-canvas.mjs.
POSTHOG_API_KEY: ${{ vars.POSTHOG_PROD_KEY }}
run: |
node -e '
const fs = require("fs");
const path = "config/defaults.json";
const defaults = JSON.parse(fs.readFileSync(path, "utf8"));
defaults.telemetry.posthogApiKey = process.env.POSTHOG_API_KEY;
fs.writeFileSync(path, `${JSON.stringify(defaults, null, 2)}\n`);
'
- name: Verify package contents
run: npm pack --dry-run