Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Sep 3, 2025

Important

Add TaskTokenUsageUpdated event to track and handle token usage changes in tasks, updating schemas and tests accordingly.

  • Behavior:
    • Add TaskTokenUsageUpdated event to track token usage changes in ExtensionChannel and Task.
    • Update ExtensionChannel to map RooCodeEventName.TaskTokenUsageUpdated to ExtensionBridgeEventName.TaskTokenUsageUpdated.
    • Emit TaskTokenUsageUpdated in Task when token usage changes, using hasTokenUsageChanged().
  • Schemas:
    • Add tokenUsage to extensionTaskSchema in cloud.ts.
    • Add TaskTokenUsageUpdated to extensionBridgeEventSchema in cloud.ts.
  • Tests:
    • Update ExtensionChannel.test.ts to include TaskTokenUsageUpdated in event listener tests.
  • Misc:
    • Increment version in package.metadata.json from 1.73.0 to 1.74.0.
    • Add hasTokenUsageChanged() function in getApiMetrics.ts to compare token usage snapshots.

This description was created by Ellipsis for ddc8968. You can customize this summary. It will automatically update as commits are pushed.

@cte cte requested review from jr and mrubens as code owners September 3, 2025 20:19
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Sep 3, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I've reviewed the changes and found some issues that need attention. The most critical is the merge conflict that needs to be resolved before this can be merged.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Sep 3, 2025
@cte cte merged commit c25cfde into main Sep 3, 2025
10 checks passed
@cte cte deleted the cte/publish-task-metrics branch September 3, 2025 20:51
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Sep 3, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants