Improve CLI error telemetry - #928
Merged
zahlekhan merged 8 commits intoAug 6, 2026
Merged
Conversation
|
@zahlekhan is attempting to deploy a commit to the thesys-devs Team on Vercel. A member of the Team first needs to authorize it. |
AbhinRustagi
approved these changes
Aug 6, 2026
zahlekhan
marked this pull request as ready for review
August 6, 2026 10:07
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.
Summary
failure_stage,error_class, anderror_codeproperties to existing CLI failure eventscli_run_idandcommandto every event from one invocationduration_ms,exit_code, andfailure_signal) to skill-install, dependency-install, and dev-server processescommands/generate.tsunchanged; the shared top-level handler emits bounded fields without raw messagesWhy
The CLI already had useful command and stage-specific events, but top-level create failures discarded
CreateError.stage, dependency and auth failures lacked actionable categories, process failures lacked consistent exit metadata, cancellations could look like failures, and generate failures sent truncated raw messages that could contain paths.This patch extends the existing event model. A compact process runner streams output unchanged while retaining a bounded 16 KiB diagnostic tail locally for allowlisted classification; that diagnostic text is never emitted.
Validation
pnpm --filter @openuidev/cli build:clipnpm --filter @openuidev/cli lint:checkpnpm --filter @openuidev/cli format:checkgit diff --checkNotes