Skip to content

Make lang-core runtime telemetry opt-in - #991

Merged
zahlekhan merged 2 commits into
mainfrom
devin/1786948773-runtime-telemetry-opt-in
Aug 17, 2026
Merged

zahlekhan merged 2 commits into
mainfrom
devin/1786948773-runtime-telemetry-opt-in

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What

Runtime usage telemetry in @openuidev/lang-core (the sampled generateSystemPrompt() event) was opt-out — it sent unless OPENUI_TELEMETRY_DISABLED/DO_NOT_TRACK was set. Per request in Slack, it is now opt-in: nothing is sent unless the user explicitly sets OPENUI_RUNTIME_TELEMETRY_ENABLED=1.

Installation (postinstall) telemetry is unchanged, as is the CLI's --no-telemetry/DO_NOT_TRACK behavior.

Changes

  • telemetry/shared.ts: new isRuntimeTelemetryEnabled(env) = OPENUI_RUNTIME_TELEMETRY_ENABLED truthy AND not disabled (so OPENUI_TELEMETRY_DISABLED/DO_NOT_TRACK still win).
  • telemetry/runtime.ts: recordSystemPromptGeneration returns early unless isRuntimeTelemetryEnabled(env); disclosure comment notes the opt-in.
  • packages/lang-core/README.md: documents the opt-in env var.

Test Plan

  • Verified locally

pnpm --filter @openuidev/lang-core lint:check, build, and test (76 passing) all green. Behavior is a single guard flip; no telemetry tests exist in the package.

Checklist

  • I linked a related issue, if applicable
  • I updated docs/README when needed
  • I considered backwards compatibility — this intentionally stops runtime telemetry for existing users until they opt in

Link to Devin session: https://app.devin.ai/sessions/d4242685cb1e4daa9a42d4fdea3cf8d5
Requested by: @zahlekhan

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@zahlekhan zahlekhan self-assigned this Aug 17, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 17, 2026 6:54am

Request Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@zahlekhan
zahlekhan merged commit a59581e into main Aug 17, 2026
4 checks passed
@zahlekhan
zahlekhan deleted the devin/1786948773-runtime-telemetry-opt-in branch August 17, 2026 07:40
Aditya-thesys added a commit to Aditya-thesys/noetic that referenced this pull request Aug 25, 2026
0.2.15 makes runtime telemetry opt-in (thesysdev/openui#991):
Library.prompt(), used by systemPrompt(), sends nothing and runs no git
lookup unless the consumer sets OPENUI_RUNTIME_TELEMETRY_ENABLED=1. This
resolves the runtime half of the telemetry review; the postinstall event
remains opt-out upstream.

0.2.15 also adds a `type-mismatch` parse error code that catches literal
props of the wrong type at parse time. fromParseError maps it to Noetic's
own `prop '<name>' rejects: …` wording so validation output stays stable
across lang-core prose changes, and a regression test covers it.

Exact pins per repo convention; example client lockfile regenerated.
openui suite 63/0, repo 2183/0, lint clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016FnULcG1A36u7uMpQGkC3r
Signed-off-by: Aditya-thesys <aditya@thesys.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants