feat: add user_handle and topic tags to root agent spans#303
Merged
Kyle-Verhoog merged 2 commits intomasterfrom Mar 16, 2026
Merged
feat: add user_handle and topic tags to root agent spans#303Kyle-Verhoog merged 2 commits intomasterfrom
Kyle-Verhoog merged 2 commits intomasterfrom
Conversation
f5765a8 to
7817712
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Persist conversation_title across turns so subsequent interactions on the same topic reuse the haiku-detected title. Tag it as topic:<title> on root agent spans (eagerly on the preliminary span, updated on Stop if haiku detects a topic change). The span name is now always "claude-code-request" instead of using the topic. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7817712 to
589cb45
Compare
ncybul
reviewed
Mar 16, 2026
ncybul
approved these changes
Mar 16, 2026
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
DD_USER_HANDLEenv var support — tags root agent spans withuser_handle:<handle>topic:<title>(eagerly on preliminary span, updated on Stop if haiku detects a change)claude-code-requestinstead of using the topicTest plan
user_handletag appears on root spans when env var is settopictag persists across turnsClaude session:
290749d0-c759-42b7-8d1b-d4edb76c65d3Resume:
claude --resume 290749d0-c759-42b7-8d1b-d4edb76c65d3🤖 Generated with Claude Code