docs: for stats --models flag
#6492
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Findings
734962675 feat: add model usage statistics...adds a new user-facing CLI flag:opencode stats --models[=N], showing per-model messages, input/output tokens, and cost.stats, but not the new--modelsflag.packages/web/src/content/docs/cli.mdx:400(added--modelsto flags table + examples).76c25ef28 feat(format): add rustfmt formatter...is already documented.packages/web/src/content/docs/formatters.mdx:1includes arustfmtrow.7adb6e495 feat(desktop): upgrade to latest version on error pageis user-visible (adds “Check for updates” / “Update to X” on the desktop error page), but it’s a small UX enhancement and doesn’t seem to warrant dedicated docs inpackages/web/src/content/docs/*right now.Doc changes made
packages/web/src/content/docs/cli.mdx:400opencode stats --modelsandopencode stats --models 5with a short example block.Triggered by scheduled workflow
opencode session | github run