Skip to content

feat(useragent): include ai-agent in structured format#34

Merged
platinummonkey merged 1 commit into
mainfrom
feat/ai-agent-in-user-agent
Feb 11, 2026
Merged

feat(useragent): include ai-agent in structured format#34
platinummonkey merged 1 commit into
mainfrom
feat/ai-agent-in-user-agent

Conversation

@amaskara-dd
Copy link
Copy Markdown
Contributor

What does this PR do?

Change AI agent from space-separated suffix to structured key-value inside parentheses for better parsing compatibility.

Format change:
Before: pup/dev (go go1.25.0; os darwin; arch arm64) claude-code
After: pup/dev (go go1.25.0; os darwin; arch arm64; ai-agent claude-code)

Benefits:

  • Consistent with existing metadata structure (all fields use key-value)
  • Better parsing for downstream analytics

All tests pass.

Checklist

  • The code change follows the project conventions (see CONTRIBUTING.md)
  • Tests have been added/updated (if applicable)
  • Documentation has been updated (if applicable)
  • All CI checks pass
  • Code coverage is maintained or improved

Change AI agent from space-separated suffix to structured key-value inside
parentheses for better parsing compatibility.

Format change:
  Before: pup/dev (go go1.25.0; os darwin; arch arm64) claude-code
  After:  pup/dev (go go1.25.0; os darwin; arch arm64; ai-agent claude-code)

Benefits:
- Consistent with existing metadata structure (all fields use key-value)
- Better parsing for downstream analytics
- Maintains backward compatibility

All tests pass.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

Overall Coverage: 80.4% Coverage

Threshold: 80% ✅

Coverage by Package
## Coverage by Package

- github.com/DataDog/pup/pkg/auth/callback/server.go:40: 81.2%
- github.com/DataDog/pup/pkg/auth/dcr/client.go:28: 100.0%
- github.com/DataDog/pup/pkg/auth/dcr/types.go:24: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/client.go:22: 100.0%
- github.com/DataDog/pup/pkg/auth/oauth/pkce.go:24: 85.7%
- github.com/DataDog/pup/pkg/auth/storage/factory.go:53: 94.7%
- github.com/DataDog/pup/pkg/auth/storage/keychain.go:44: 42.9%
- github.com/DataDog/pup/pkg/auth/storage/storage.go:58: 71.4%
- github.com/DataDog/pup/pkg/auth/types/types.go:23: 100.0%
- github.com/DataDog/pup/pkg/client/client.go:32: 94.4%
- github.com/DataDog/pup/pkg/config/config.go:22: 100.0%
- github.com/DataDog/pup/pkg/formatter/formatter.go:31: 100.0%
- github.com/DataDog/pup/pkg/useragent/useragent.go:32: 100.0%
- github.com/DataDog/pup/pkg/util/time.go:20: 95.8%

## Summary

total:								(statements)		80.4%

📈 Coverage Status: ✅ PASSED - Coverage meets minimum threshold

Updated for commit d0c29ac

@amaskara-dd amaskara-dd marked this pull request as ready for review February 11, 2026 12:54
@amaskara-dd amaskara-dd requested a review from a team as a code owner February 11, 2026 12:54
@platinummonkey platinummonkey merged commit b3c5d95 into main Feb 11, 2026
4 checks passed
@platinummonkey platinummonkey deleted the feat/ai-agent-in-user-agent branch February 11, 2026 13:58
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