Repository navigation
fix(compose): ship the Agent Canvas PostHog key and automation 1.27.0 (OHE-3657) - #1200
Merged
Merged
Conversation
… (OHE-3657)
A stock `docker compose up` sent no onboarding events to PostHog.
POSTHOG_CLIENT_KEY defaulted to empty, which keeps PostHog disabled in
the app, the worker and the automation server, and the pinned automation
1.26.1 predates `ohe_automation_created`.
- Default POSTHOG_CLIENT_KEY (app, worker) and AUTOMATION_POSTHOG_API_KEY
to the Agent Canvas production project key. `${VAR-default}` keeps an
explicitly empty POSTHOG_CLIENT_KEY empty, so the documented opt-out
still works.
- Bump automation 1.26.1 -> 1.27.0, which sends `ohe_automation_created`
with `automation_name` and `is_first_automation_in_org`.
- Name an empty POSTHOG_CLIENT_KEY as the opt-out in the comment:
ENABLE_POSTHOG_ANALYTICS=false alone does not stop the automation
server.
Contributor
hieptl
marked this pull request as ready for review
November 5, 2026 05:22
Contributor
|
🚀 Released in 1.87.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
A stock install (
git clone+docker compose up --wait) sends none of the OHE onboarding events to PostHog. #1103 added the events and turned analytics on in the compose stack, butPOSTHOG_CLIENT_KEYdefaults to empty. The app, the worker and the automation server therefore keep PostHog disabled. The compose file also pins automation 1.26.1, andohe_automation_createdfirst ships in automation 1.27.0.Summary
POSTHOG_CLIENT_KEY(app, worker) andAUTOMATION_POSTHOG_API_KEYdefault to the Agent Canvas production project key. The${POSTHOG_CLIENT_KEY-…}form (no colon) keeps an explicitly empty value empty, so the documented opt-out still works.ohe_automation_createdwithautomation_nameandis_first_automation_in_org.POSTHOG_CLIENT_KEYas the way to send nothing, becauseENABLE_POSTHOG_ANALYTICS=falsealone does not stop the automation server.Issue Number
OHE-3657: https://linear.app/all-hands-ai/issue/OHE-3657/posthog-instrument-first-time-user-onboarding-with-posthog-events
How to Test
docker-compose.yml:.env:docker compose configshows the key onapp,workerandautomation-server, andautomation:1.27.0..envwithPOSTHOG_CLIENT_KEY=: all three show""..envwithPOSTHOG_CLIENT_KEY=<other key>: all three show that key.docker compose down -v && docker compose up --wait. Sign up as the first Super Admin, finish/install, then create an automation in/canvas. In the Agent Canvas PostHog project,ohe_user_signed_up,ohe_instance_setup_completedandohe_automation_createdappear on the person whoseemailis the address used to sign up.Step 1 was run, and all three cases matched. Step 2 has not been run yet, because it sends real events to the production project.
Video/Screenshots
None: compose configuration only, no UI change.
Type
Notes
AUTOMATION_RUN_MIGRATIONS_ON_STARTUP).Enterprise server image for this PR: