Skip to content

Draw the OpenCode mark on the taskbar strip - #290

Merged
btsouth merged 3 commits into
mainfrom
opencode-taskbar-mark
Aug 14, 2026
Merged

Draw the OpenCode mark on the taskbar strip#290
btsouth merged 3 commits into
mainfrom
opencode-taskbar-mark

Conversation

@btsouth

@btsouth btsouth commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary: the taskbar overlay strip renders OpenCode and OpenCode Go as a blank light-gray disc because draw_provider_icon had no bitmap for them and fell through to the solid-disc fallback. Adds a 16x16 square-ring OPENCODE mask and a provider_color entry matching the web registry. Tests: cargo test (taskbar_widget, 54 passed), cargo fmt --check, cargo clippy --all-targets -- -D warnings.

Note

Draw the OpenCode mark on the Windows taskbar strip

Adds OpenCode-specific rendering to the Windows taskbar widget in taskbar_widget.rs.

  • Adds a 16x16 bitmap mask constant for the OpenCode square-ring glyph.
  • Maps provider IDs opencode and opencodego to this mask and to the color rgb(59, 130, 246), matching the web registry color.
  • Previously, these provider IDs fell back to a generic solid disc with the default color.

Macroscope summarized b5d92e8.

Summary by CodeRabbit

  • New Features
    • Added OpenCode and OpenCode Go support to the taskbar widget.
    • Added OpenCode branding and icon styling for improved visual identification.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 14, 2026

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 b5d92e8 Commit Preview URL

Branch Preview URL
Aug 14 2026, 05:37 AM

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bee64ab9-7b54-4ca0-9365-e7e56009806d

📥 Commits

Reviewing files that changed from the base of the PR and between a135b18 and 250f0f5.

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

📝 Walkthrough

Walkthrough

The taskbar widget adds an OpenCode icon mask and maps both opencode and opencodego to the icon and blue brand color.

Changes

OpenCode taskbar rendering

Layer / File(s) Summary
Add OpenCode icon and color mappings
apps/desktop-tauri/src-tauri/src/taskbar_widget.rs
The taskbar widget adds the OpenCode square-ring icon mask and maps opencode and opencodego to the icon and #3b82f6 brand color.

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

Mergeability Score: ⚪ Minimal · up to 250f0

This localized taskbar icon change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

Suggested reviewers: diogochaves

🚥 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%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: rendering the OpenCode mark on the taskbar strip.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch opencode-taskbar-mark

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

@github-actions

Copy link
Copy Markdown

Automated review

Found 1 issue:

  1. No failing test covers this change

    apps/desktop-tauri/src-tauri/src/taskbar_widget.rs:1765 · disposition: fix-if-quick · confidence: high · severity: medium · quick win

    Before this diff, provider ids opencode and opencodego fell through draw_provider_icon to the unknown-provider solid disc and through provider_color to rgb(204, 211, 220). After it they take the new OPENCODE 16x16 mask and rgb(59, 130, 246). No test in the diff (and none in this module) asserts either mapping, so deleting the match arms or changing the COLORREF would still pass cargo test.

    Prompt for AI agents

    In apps/desktop-tauri/src-tauri/src/taskbar_widget.rs around line 1765: Lift the id-to-mask and id-to-color matches out of the GDI paint path (or pub(super) them inside windows_host) and add a table test that opencode and opencodego both resolve to the OPENCODE rows and rgb(59, 130, 246), and that an unknown id does not. Verify against the current code first; if no longer valid, skip with a brief reason. Keep the change minimal.

For coding agents: fix BLOCK and FIX IF QUICK findings now; everything else is tracked or informational; never exceed one CodeRev fix round per PR.

Advisory. Findings generated by grok-subscription and muse-spark-1.2-contributor, each filtered through a 3-vote refutation panel with the changed code in evidence.

"grok" => Some(&GROK),
"gemini" => Some(&GEMINI),
"antigravity" | "agy" => Some(&ANTIGRAVITY),
"opencode" | "opencodego" => Some(&OPENCODE),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No failing test covers this change · disposition: fix-if-quick · confidence: high · severity: medium · quick win

Before this diff, provider ids opencode and opencodego fell through draw_provider_icon to the unknown-provider solid disc and through provider_color to rgb(204, 211, 220). After it they take the new OPENCODE 16x16 mask and rgb(59, 130, 246). No test in the diff (and none in this module) asserts either mapping, so deleting the match arms or changing the COLORREF would still pass cargo test.

Prompt for AI agents

Lift the id-to-mask and id-to-color matches out of the GDI paint path (or pub(super) them inside windows_host) and add a table test that opencode and opencodego both resolve to the OPENCODE rows and rgb(59, 130, 246), and that an unknown id does not. Verify against the current code first; if no longer valid, skip with a brief reason. Keep the change minimal.

CodeRev · advisory

@btsouth
btsouth merged commit 48d6055 into main Aug 14, 2026
8 of 10 checks passed
@btsouth
btsouth deleted the opencode-taskbar-mark branch August 14, 2026 05:37
@btsouth btsouth mentioned this pull request Aug 14, 2026
9 tasks
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