Skip to content

Show OpenCode Go monthly label on the taskbar strip - #200

Merged
tsouth89 merged 1 commit into
mainfrom
fix/taskbar-tertiary-label
Aug 3, 2026
Merged

Show OpenCode Go monthly label on the taskbar strip#200
tsouth89 merged 1 commit into
mainfrom
fix/taskbar-tertiary-label

Conversation

@tsouth89

@tsouth89 tsouth89 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

The taskbar strip picks the constraining usage window and shows its label, but for the tertiary window it hardcoded the label to "Extra" and ignored the tertiary_label that #197 added to the data model. OpenCode Go's monthly bar therefore still read "Extra" on the taskbar even though the React surfaces (flyout, activity timeline) correctly showed "Monthly".

The native taskbar_widget.rs is the mirror of capacityPresentation.ts's constrainingWindow (SOU-288); #197 updated the frontend but not this mirror. This change aligns them: the strip now uses snapshot.tertiary_label with "Extra" as the fallback when no label is set.

Changes

  • apps/desktop-tauri/src-tauri/src/taskbar_widget.rs - use tertiary_label.as_deref().or(Some("Extra")) in constraining_readout; add regression tests for both the labeled ("Monthly") and unnamed (falls back to "Extra") tertiary paths.

Validation

  • cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml: 466 passed (taskbar_widget: 28 passed, including the 2 new regression tests, which fail against the old hardcode).
  • cargo fmt --all clean; cargo clippy --all-targets -- -D warnings clean.

The taskbar strip picked the constraining window's tertiary bar but
hardcoded its label to 'Extra', ignoring the provider's tertiary_label
that #197 added for the React surfaces. Use the label with 'Extra' as the
fallback, matching capacityPresentation.ts (SOU-288 mirror).

Fixes: OpenCode Go monthly bar still labeled 'Extra' on the taskbar.
Copilot AI review requested due to automatic review settings August 3, 2026 05:18
@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ceiling b8449c7 Commit Preview URL

Branch Preview URL
Aug 03 2026, 05:18 AM

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 45 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6f912b1e-20e7-4fd8-8980-35ab8dcfe0bb

📥 Commits

Reviewing files that changed from the base of the PR and between a640074 and b8449c7.

📒 Files selected for processing (1)
  • apps/desktop-tauri/src-tauri/src/taskbar_widget.rs

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns the native Tauri taskbar strip’s constraining-window label selection with the tertiary_label field introduced in #197, so OpenCode Go’s monthly (tertiary) window can display “Monthly” on the taskbar instead of always showing “Extra”.

Changes:

  • Use snapshot.tertiary_label (with "Extra" fallback) when the tertiary window is the constraining window.
  • Add regression tests covering labeled tertiary (“Monthly”) and unlabeled tertiary (fallback to “Extra”).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
if let Some(window) = snapshot.tertiary.as_ref() {
out.push((Some("Extra"), window));
out.push((snapshot.tertiary_label.as_deref().or(Some("Extra")), window));
@tsouth89
tsouth89 merged commit a1c3dd0 into main Aug 3, 2026
12 checks passed
@tsouth89
tsouth89 deleted the fix/taskbar-tertiary-label branch August 3, 2026 05:22
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.

2 participants