fix(web): show provider icons for active and completed sidebar statuses #1888
ClosedMarve10s(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/1888/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
Marve10s(GitHub profile, opens in a new tab) changed the title
Marve10s(GitHub profile, opens in a new tab) changed the title
- apps/web/src/components/Sidebar.tsx line 250OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -236,3 +237,14 @@236237237238 type ThreadPr = GitStatusResult["pr"];238239240+function providerStatusIconClassName(provider: ThreadStatusPill["workingProvider"]): string {241+ if (provider === "claudeAgent") {242+ return "text-[#d97757]";243+ }244+245+ if (provider === "codex") {246+ return "text-foreground";247+ }248+249+ return "";250+}
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/web/src/components/ThreadStatusIndicators.tsx line 137Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -102,0 +117,21 @@117+ className={iconClassName}118+ />119+ ) : normalizedProvider === "codex" ? (120+ <OpenAI121+ aria-hidden="true"122+ data-provider-status-icon={normalizedProvider}123+ className={iconClassName}124+ />125+ ) : normalizedProvider === "cursor" ? (126+ <CursorIcon127+ aria-hidden="true"128+ data-provider-status-icon={normalizedProvider}129+ className={iconClassName}130+ />131+ ) : normalizedProvider === "opencode" ? (132+ <OpenCodeIcon133+ aria-hidden="true"134+ data-provider-status-icon={normalizedProvider}135+ className={iconClassName}136+ />137+ ) : null;apps/web/src/components/Sidebar.logic.ts line 334OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -330,3 +331,4 @@330331 thread: ThreadStatusInput;331332 }): ThreadStatusPill | null {332333 const { thread } = input;334+ const workingProvider = thread.session?.providerName ?? thread.session?.provider;
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
79b4064b-8a2c-4954-a34b-30585e768bc7You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
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