Skip to content

fix(cloudflare): Bucket Claude-User clients as claude, not claude-desktop - #1516

Draft
sentry-junior[bot] wants to merge 2 commits into
mainfrom
mattd/claude-client-family
Draft

sentry-junior[bot] wants to merge 2 commits into
mainfrom
mattd/claude-client-family

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

resolveClientFamily mapped the Claude-User user agent to claude-desktop. Claude-User is Anthropic's generic user agent for user-directed requests from its hosted Claude apps, so it doesn't identify Desktop specifically. In practice, activity from Claude routines was showing up in Sentry issue activity as "Claude Desktop".

  • Claude-User and DCR client names containing "Claude" now map to claude. Claude Code is still matched first and stays claude-code.
  • Updated client-family.test.ts and the app.client.family value list in docs/operations/oauth-signout-playbook.md.

Heads up: this renames the app.client.family metric/span value, so any dashboards or queries filtering on claude-desktop should switch to claude.

Sentry accepts both values. The companion getsentry/sentry PR maps the legacy claude-desktop header to claude, so the two PRs can deploy in either order.

Checks

  • vitest run src/server/lib/client-family.test.ts: 30/30 passed.
  • oxlint on the changed files: clean.

via matt.duncan.

--

View Junior Session [Sentry]

…ktop

Claude-User is Anthropic's generic agent for user-directed requests from
its hosted apps, so it can't distinguish Desktop from claude.ai or Claude
routines. Report it (and DCR names containing Claude) as claude.

Co-Authored-By: Matt Duncan <matt.duncan@sentry.io>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 16, 2026 12:12am UTC

Request Review

Co-Authored-By: Matt Duncan <matt.duncan@sentry.io>

This branch was previously deployed

1 inactive deployment
Preview — 69d49c7f Deployed Oct 16, 2026 by vercel[bot]
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.

0 participants