Skip to content

Conversation

@jr
Copy link
Collaborator

@jr jr commented Nov 19, 2025

Signed in with balance:
signed-in-with-balance

Signed out:
signed-out


Important

Adds RCC credit balance display feature with backend fetching and frontend UI updates, including tests for new functionality.

  • Behavior:
    • Adds creditBalance() method to CloudAPI in CloudAPI.ts to fetch RCC credit balance.
    • Handles requestRooCreditBalance in webviewMessageHandler.ts to fetch and return balance to webview.
    • Displays balance in RooBalanceDisplay component when authenticated.
  • Tests:
    • Adds CloudAPI.creditBalance.spec.ts to test creditBalance() method.
    • Adds webviewMessageHandler.rooBalance.spec.ts to test message handling for balance requests.
    • Adds RooBalanceDisplay.spec.tsx to test balance display component.
    • Updates ApiOptions.spec.tsx to test balance display in ApiOptions component.
  • UI Components:
    • Adds RooBalanceDisplay.tsx to display formatted balance with a link to billing.
    • Updates ApiOptions.tsx to conditionally show RooBalanceDisplay when provider is roo and authenticated.

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

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 19, 2025
@jr jr marked this pull request as ready for review November 19, 2025 21:10
@jr jr requested review from cte and mrubens as code owners November 19, 2025 21:10
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Enhancement New feature or request labels Nov 19, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 19, 2025

Rooviewer Clock   See task on Roo Cloud

Review completed. All previously identified issues have been resolved.

  • Memory leak and incorrect error state in useRooCreditBalance hook - timeout not cleared when message received
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 20, 2025
@mrubens mrubens merged commit f1bf436 into main Nov 20, 2025
13 checks passed
@mrubens mrubens deleted the jr/add-roo-credit-balance branch November 20, 2025 02:36
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 20, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Nov 20, 2025
mini2s added a commit to zgsm-ai/costrict that referenced this pull request Nov 20, 2025