Skip to content

fix(telemetry): don't record a cancelled command as an error#210

Merged
alexkroman merged 1 commit into
mainfrom
claude/brave-gates-r8tmnf
Jun 17, 2026
Merged

fix(telemetry): don't record a cancelled command as an error#210
alexkroman merged 1 commit into
mainfrom
claude/brave-gates-r8tmnf

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Cancelling a command (Ctrl-C / SIGTERM) is a normal part of CLI use, but
build_event treated every non-success outcome as a failure: a "cancelled"
outcome shipped with status:error and a reserved error.kind block, so it fed
Datadog Error Tracking and inflated the crash rate (seen for assembly llm
and assembly transcripts get cancellations).

Treat "cancelled" alongside "success" as a non-error outcome via a
_NON_ERROR_OUTCOMES set: it now ships as an info log with no error block, while
genuine failures still feed Error Tracking unchanged.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_019fXXbmHqMUbRoEHssQEMmi

Cancelling a command (Ctrl-C / SIGTERM) is a normal part of CLI use, but
build_event treated every non-success outcome as a failure: a "cancelled"
outcome shipped with status:error and a reserved error.kind block, so it fed
Datadog Error Tracking and inflated the crash rate (seen for `assembly llm`
and `assembly transcripts get` cancellations).

Treat "cancelled" alongside "success" as a non-error outcome via a
_NON_ERROR_OUTCOMES set: it now ships as an info log with no error block, while
genuine failures still feed Error Tracking unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019fXXbmHqMUbRoEHssQEMmi
@alexkroman alexkroman enabled auto-merge June 17, 2026 03:22
@alexkroman alexkroman added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit ee15895 Jun 17, 2026
19 checks passed
@alexkroman alexkroman deleted the claude/brave-gates-r8tmnf branch June 17, 2026 03:28
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