Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Dec 8, 2025

Summary by cubic

Refactored the CLI info command into smaller functions and added session usage stats (cost and token counts) to the output. Improves maintainability and gives users clear visibility into session usage.

  • New Features

    • Display total cost, input/output tokens, and cache read/write tokens.
    • Show "No usage data yet" when unavailable and warn on errors.
  • Refactors

    • Extracted info builders: getVersionInfo, getAuthInfo, getConfigInfo, getSessionInfo, getUsageInfo, getDiagnosticInfo; composed in handleInfoSlashCommand.
    • Reduced inline logic and separated concerns for clearer, testable code.

Written for commit 30b8d5c. Summary will update on new commits.


Continue Tasks

Status Task Actions
▶️ Queued Update PostHog Dashboards View
▶️ Not Started Create GitHub Issue (OS) Run

Powered by Continue

@sestinj sestinj requested a review from a team as a code owner December 8, 2025 22:07
@sestinj sestinj requested review from RomneyDa and removed request for a team December 8, 2025 22:07
@continue
Copy link
Contributor

continue bot commented Dec 8, 2025

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

2 similar comments
@continue-development-app
Copy link

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

@continue-development-app
Copy link

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

✅ Review Complete

Code Review Summary

⚠️ Continue configuration error. Please verify that the assistant exists in Continue Hub.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

The /info command now displays session usage statistics including:
- Total cost in dollars
- Input/output token counts
- Cache read/write token counts (when applicable)

Updated CLI quick-start documentation to reflect this new capability.

Co-authored-by: nate <[email protected]>
@continue
Copy link
Contributor

continue bot commented Dec 8, 2025

📝 Documentation update PR created: #9071

Updated the CLI quick-start guide to reflect the new usage statistics feature in the /info command.

docs: update /info command description with usage statistics
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

Tested, looks good.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jan 15, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 15, 2026
@RomneyDa RomneyDa merged commit 710f675 into main Jan 15, 2026
58 of 59 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jan 15, 2026
@RomneyDa RomneyDa deleted the nate/refactor-info-screen-extract-functions branch January 15, 2026 22:37
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2026
@sestinj
Copy link
Contributor Author

sestinj commented Jan 22, 2026

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants