Show OpenCode Go monthly label on the taskbar strip - #200
Conversation
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.
Deploying with
|
| 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 |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 45 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
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)); |
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 thetertiary_labelthat #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.rsis the mirror ofcapacityPresentation.ts'sconstrainingWindow(SOU-288); #197 updated the frontend but not this mirror. This change aligns them: the strip now usessnapshot.tertiary_labelwith"Extra"as the fallback when no label is set.Changes
apps/desktop-tauri/src-tauri/src/taskbar_widget.rs- usetertiary_label.as_deref().or(Some("Extra"))inconstraining_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 --allclean;cargo clippy --all-targets -- -D warningsclean.