Repository navigation
fix: record workflow tool parts in audit metadata - #1091
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 25, 2026
This branch was successfully deployed
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.
Workflow audit records currently report zero tool parts because the main workflow never supplies the count to the existing audit writer. Count top-level static/dynamic tool UI parts in the accumulated assistant message and forward that optional metadata through
handleChatCredits.This is a bounded successor to #649. The count includes pending/failed parts and preexisting parts in a resumed message; it is not successful executions, incremental resume work, or nested subagent usage. Credit calculations, amounts, account/model attribution, charge conditions and workflow boundaries remain unchanged. No migration or historical backfill.
Validation:
9364e765d5b38b51fed75dd2801c396cdccc5616(tree19add370db831f2cf80528180c73358cee21b7dc, base5c0e585d0e12277abc57160129f35b02c9e7cacf).Summary by cubic
Fixes workflow audit records reporting zero tool calls because the main workflow never supplied the count to the existing audit writer. Counts tool UI parts in the accumulated assistant message and passes the optional count through
handleChatCreditsinto audit metadata, without changing credit calculations, amounts, charge conditions, or workflow boundaries.Tool call counting
Written for commit 9364e76. Summary will update on new commits.