cli: add openui feedback for anonymous feedback - #1266
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
AbhinRustagi
approved these changes
Sep 29, 2026
This branch was successfully deployed
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.
What
Adds
openui feedbackso users and coding agents can send short anonymous feedback about OpenUI from the terminal. The CLI captures it directly to PostHog with the CLI's existing public ingestion key.The event
agent_feedback_submittedhas the properties{ message, category (default "other"), agent_name?, cli_version }. It is sent anonymously:crypto.randomUUID()distinct ID per submission, never the persisted telemetry ID$process_person_profile: false, so no person profile is createddisableGeoip: true$ip: "0.0.0.0": PostHog only fills$ipfrom the connection when the property is absent, so this placeholder keeps the sender's IP off the eventIt is sent even with
--no-telemetry/DO_NOT_TRACK=1, because the user runs it explicitly.captureImmediateswallows send errors, so the command listens for the client'serrorevent and exits non-zero withCould not send feedback: ….Changes
commands/feedback/{command,run}.ts: new command. Validates the message (non-empty, ≤2000 chars) and the category, and printsThanks! Feedback sent.on success.lib/posthog.ts(new): key and host, pluscreatePostHogClient(options?), which applies the sharedhost/flushAt: 1/flushInterval: 0settings.createPostHogClient().createPostHogClient({ disableGeoip: true }).Found a bug or have an idea?hint in the top-levelopenuihelp (root program only) and in thecreate"Done!" message.lib/context.ts,program.ts: exposecliVersionon the context.openui feedbacksection. Root README: "Feedback" section.Test Plan
pnpm --filter @openuidev/cli lint:checkandbuildpass.OPENUI_POSTHOG_HOST):$geoip_disable: trueand$ip: "0.0.0.0".--no-telemetryand withDO_NOT_TRACK=1.categorydefaults toother, andagent_nameis omitted forunknown.cli_invokedstill arrives after the factory refactor.Could not send feedback: …, after about 9s of SDK retries.openuiandopenui --help, and not inopenui create --help.Checklist
Link to Devin session: https://app.devin.ai/sessions/1176b6dec03745c6b07115be26fed6e9
Open in Devin Desktop: https://app.devin.ai/desktop/session/1176b6dec03745c6b07115be26fed6e9?variant=devin
Requested by: @zahlekhan