Skip to content

fix(proxy): preserve managed subscription telemetry source - #1202

Merged
steventohme merged 1 commit into
mainfrom
fix/managed-subscription-telemetry
Sep 6, 2026
Merged

fix(proxy): preserve managed subscription telemetry source#1202
steventohme merged 1 commit into
mainfrom
fix/managed-subscription-telemetry

Conversation

@steventohme

Copy link
Copy Markdown
Collaborator

Summary

Managed subscription leases are dispatched with a per-attempt credential context, but telemetry is written from the outer request context after dispatch. Successful managed Claude/Codex turns therefore lost credential_source, causing the analytics export to report subscription_served=false even though billing correctly debited $0.

This change carries the managed source in request-local usage attribution and makes telemetry prefer it without retaining access-token bytes on the outer context.

Validation

  • go test ./...
  • wv router tc

@steventohme
steventohme merged commit ea1991b into main Sep 6, 2026
17 checks passed
@steventohme
steventohme deleted the fix/managed-subscription-telemetry branch September 6, 2026 06:35
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.

1 participant