Skip to content

[0.60.5] Expose OpenCode Go Monthly metric - #550

Open
Finesssee wants to merge 1 commit into
mainfrom
codex/port-0.60.5-opencode-go-monthly-picker
Open

Finesssee wants to merge 1 commit into
mainfrom
codex/port-0.60.5-opencode-go-monthly-picker

Conversation

@Finesssee

@Finesssee Finesssee commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

What changed

OpenCode Go now exposes its Monthly usage metric in the Windows provider settings before a live usage snapshot exists. The existing provider metric setting persists the explicit tertiary choice, and the first snapshot continues to honor that choice.

Scope

  • Adds the provider-specific picker option and focused selection test.
  • Keeps usage data and dashboard behavior unchanged.

Validation

  • git diff --check
  • Focused test coverage added in MenuBarMetricSection.test.tsx; the worktree has no frontend dependency cache, so running Vitest would require an install and was not performed to protect local storage.

Summary by CodeRabbit

  • New Features
    • OpenCode Go now offers a monthly provider usage metric in the menu bar settings.
    • After tertiary usage is detected, users can select the tertiary metric for OpenCode Go.
    • Other providers with tertiary metric support continue displaying their existing tertiary metric label.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 20922c6b-07ae-4317-a221-a1a2ea8f8e44

📥 Commits

Reviewing files that changed from the base of the PR and between 10e3b09 and 0b7bfc1.

📒 Files selected for processing (2)
  • apps/desktop-tauri/src/surfaces/settings/providers/sections/MenuBarMetricSection.test.tsx
  • apps/desktop-tauri/src/surfaces/settings/providers/sections/MenuBarMetricSection.tsx

Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

OpenCode Go now offers the tertiary menu bar metric before tertiary observation. The option uses the ProviderMonthly label. Tests verify its availability and the onChange payload.

Changes

OpenCode Go metric selection

Layer / File(s) Summary
Tertiary metric availability and validation
apps/desktop-tauri/src/surfaces/settings/providers/sections/MenuBarMetricSection.tsx, apps/desktop-tauri/src/surfaces/settings/providers/sections/MenuBarMetricSection.test.tsx
OpenCode Go now includes the tertiary metric with the ProviderMonthly label. Tests verify that the option is available before tertiary observation, selecting it emits { providerMetrics: { opencodego: "tertiary" } }, and the label remains available after observation.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 0b7bf

OpenCode Go can persist the tertiary selection before data is available without crashing, resetting the choice, or displaying an invalid metric.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: exposing the OpenCode Go Monthly usage metric.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant