Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/subcommands/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ chatCommand.action(async (model, options: ChatCommandOptions) => {
client,
chat,
{
stats: options.stats,
stats: options.stats || options.verbose === true,
ttl,
},
llm,
Expand All @@ -246,7 +246,7 @@ chatCommand.action(async (model, options: ChatCommandOptions) => {
process.exit(1);
}
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 👍 / 👎.

ttl,
});
} else {
Expand Down