Skip to content

fix(cloud-task): attribute ai_generation task_user_id to task creator#3062

Merged
tatoalo merged 1 commit into
mainfrom
fix/cloud-task-user-attribution
Jul 1, 2026
Merged

fix(cloud-task): attribute ai_generation task_user_id to task creator#3062
tatoalo merged 1 commit into
mainfrom
fix/cloud-task-user-attribution

Conversation

@tatoalo

@tatoalo tatoalo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Problem

Cloud task runs mis-attribute their LLM analytics. Every $ai_generation event emitted during a cloud run is stamped with task_user_id: 0 instead of the id of the user who created the task, so per-user attribution/cost for cloud runs is wrong

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 7fd2ac0.

@tatoalo tatoalo self-assigned this Jul 1, 2026
@tatoalo tatoalo marked this pull request as ready for review July 1, 2026 15:10
@tatoalo tatoalo added the Stamphog This will request an autostamp by stamphog on small changes label Jul 1, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial one-liner fallback fix with no security implications or API contract changes.

@tatoalo tatoalo enabled auto-merge (squash) July 1, 2026 15:12
@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(cloud-task): attribute ai_generation..." | Re-trigger Greptile

@tatoalo tatoalo merged commit 85deab0 into main Jul 1, 2026
27 checks passed
@tatoalo tatoalo deleted the fix/cloud-task-user-attribution branch July 1, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant