Skip to content

Show usage stats when running lms chat --verbose#462

Open
immerSIR wants to merge 1 commit intolmstudio-ai:mainfrom
immerSIR:feat/chat-verbose-shows-usage
Open

Show usage stats when running lms chat --verbose#462
immerSIR wants to merge 1 commit intolmstudio-ai:mainfrom
immerSIR:feat/chat-verbose-shows-usage

Conversation

@immerSIR
Copy link
Contributor

Summary

  • treat --verbose as enabling chat usage stats
  • apply this behavior to both interactive and non-interactive chat flows

Result

Running lms chat --verbose now shows usage stats without requiring an extra --stats flag.

Fixes #238

@github-actions
Copy link

github-actions bot commented Feb 11, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb6c2df53b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
await handleNonInteractiveChat(llm, chat, providedPrompt, logger, {
stats: options.stats,
stats: options.stats || options.verbose === true,

Choose a reason for hiding this comment

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

P1 Badge Return undefined when stats flags are absent

This expression now yields false when neither --stats nor --verbose is provided, but handleNonInteractiveChat treats any value other than undefined as “show stats” (opts.stats !== undefined). In non-interactive runs (for example lms chat -p "hi"), this makes usage stats print even when the user did not request them, which is a behavior regression from the previous options.stats pass-through.

Useful? React with 👍 / 👎.

@immerSIR
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@github-actions github-actions bot added the CLA signed Indicates if all contributors have signed the CLA label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA signed Indicates if all contributors have signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEAT: Show usage with lms chat

1 participant