fix(usage): register emitted feature values#4580
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryReviewed additions to Files Reviewed (2 files)
Reviewed by claude-sonnet-5 · Input: 14 · Output: 2.3K · Cached: 233.6K Review guidance: REVIEW.md from base branch |
jeanduplessis
approved these changes
Jul 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
Register feature values that production callers already emit so the gateway preserves them in
microdollar_usage_metadata.feature_idinstead of normalizing them toNULL.cloud-agent-webis already registered on currentmainby #4574. This PR adds the remaining observed values and deliberately leavesunknowninvalid.Feature sources
jetbrains-plugin: set by the JetBrains launcher throughKILOCODE_FEATUREinKilo-Org/kilocode(packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/cli/KiloBackendCliManager.kt).daemon: set by the Kilo daemon child environment inKilo-Org/kilocode(packages/opencode/src/kilocode/daemon/daemon.ts).code-review-memory: sent directly by review-memory LLM requests inapps/web/src/lib/code-reviews/review-memory/llm.ts.security-remediation: passed as the Cloud AgentcreatedOnPlatformvalue byservices/security-auto-analysis/src/remediation.ts, then forwarded asKILOCODE_FEATURE.githubandlinear: derived from the Kilo Bot chat adapter name inapps/web/src/lib/bot/agent-runner.tsand passed to spawned Cloud Agent sessions ascreatedOnPlatform.scheduled: used by scheduled Webhook Agent runs inservices/webhook-agent-ingest/src/queue-consumer.tsand forwarded by Cloud Agent asKILOCODE_FEATURE.The
Kilo-Org/kilocodesources were checked at commit982503868326ba72a66419cb5c7d716fe13ea0c7.Verification
oxfmton the changed filesoxlinton the changed files: 0 warnings, 0 errorsgit diff --checkNotes
unknownremains rejected and has an explicit regression assertion.