Skip to content

Add sampled Lang Core system prompt telemetry - #930

Merged
zahlekhan merged 34 commits into
thesysdev:mainfrom
zahlekhan:codex/lang-core-system-prompt-telemetry
Aug 5, 2026
Merged

Add sampled Lang Core system prompt telemetry#930
zahlekhan merged 34 commits into
thesysdev:mainfrom
zahlekhan:codex/lang-core-system-prompt-telemetry

Conversation

@zahlekhan

Copy link
Copy Markdown
Contributor

Summary

  • add 10% sampled telemetry for successful server-side generateSystemPrompt() calls
  • report allowlisted runtime metadata, component and tool counts, and locally hashed configuration and project identifiers
  • exclude browser environments and avoid sending prompts, generated output, credentials, or raw component and tool definitions
  • support OPENUI_TELEMETRY_DISABLED=1 and DO_NOT_TRACK=1 opt-outs
  • document the telemetry behavior in the Lang Core README

Implementation

  • telemetry runs asynchronously and never affects prompt generation
  • project identity uses Git origin, REPOSITORY_URL, or the working directory and is cached once per runtime
  • Lang Core version is injected from the package version during the build
  • delivery errors and unsupported runtime capabilities are ignored

Validation

  • pnpm --filter @openuidev/lang-core test (76 tests)
  • pnpm --filter @openuidev/lang-core typecheck
  • pnpm --filter @openuidev/lang-core run ci
  • pnpm --filter @openuidev/lang-core build

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

@zahlekhan is attempting to deploy a commit to the thesys-devs Team on Vercel.

A member of the Team first needs to authorize it.

@zahlekhan
zahlekhan marked this pull request as ready for review August 5, 2026 10:05
@zahlekhan
zahlekhan merged commit dbad744 into thesysdev:main Aug 5, 2026
2 of 3 checks passed
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