Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
feat(vscode): shared states, orb loading and a dead code tree that knows when it ran (#3314)
Raghav Chamadiya4a84df1c12ba
diff --git a/packages/ui/src/c4/nodes/ScopeFrameNode.tsx b/packages/ui/src/c4/nodes/ScopeFrameNode.tsxindex 2dce8e346..251db6663 100644--- a/packages/ui/src/c4/nodes/ScopeFrameNode.tsx+++ b/packages/ui/src/c4/nodes/ScopeFrameNode.tsx@@ -32,13 +32,13 @@ function ScopeFrameNodeImpl(props: NodeProps) {position: "relative",}}>- {/* Faint warm wash inside the boundary — garnish, sits behind cards. */}+ {/* Faint neutral ground inside the boundary, behind cards. */}<divstyle={{position: "absolute",inset: 0,borderRadius: 16,- backgroundImage: "var(--gradient-warm-wash)",+ background: "var(--color-bg-surface)",opacity: 0.4,}}/>diff --git a/packages/ui/styles/globals.css b/packages/ui/styles/globals.cssindex 5c93f70b1..9a072838e 100644--- a/packages/ui/styles/globals.css+++ b/packages/ui/styles/globals.css@@ -330,11 +330,8 @@/* Soft saturated -> pale warm gradient (the "smooth two-tone" style):brand orange melting into a warm peach. For brand chips, icon blobs,small accent panels, avatars, selected/active art. Dark text reads on- the whole sweep. `--gradient-warm-wash` is the ultra-subtle background- version (theme-aware) for hero washes and section bands; product empty- states stay on the neutral planes. */+ the whole sweep. Product empty states stay on the neutral planes. */--gradient-warm: linear-gradient(135deg, #f59520 0%, #ffd9b0 100%);- --gradient-warm-wash: linear-gradient(160deg, #fff4ea 0%, #ffe6cf 55%, #ffd9bd 100%);/* ================================================================== *//* Elevation — warm/plum-tinted shadows (LIGHT; `.dark` overrides) */@@ -620,10 +617,6 @@--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07);--shadow-button: 0 1px 2px rgba(0, 0, 0, 0.4);-- /* Dark soft wash — neutral graphite with a faint lift at the end. Tracks the- surface ramp: the wash reads as a lit panel only if it starts at the base. */- --gradient-warm-wash: linear-gradient(160deg, #101012 0%, #16161a 55%, #1f1f23 100%);}/* -------------------------------------------------------------------- */diff --git a/packages/vscode/src/constants.ts b/packages/vscode/src/constants.tsindex 66343a81f..2ce686cac 100644--- a/packages/vscode/src/constants.ts+++ b/packages/vscode/src/constants.ts@@ -60,6 +60,8 @@ export const InternalCommands = {handPlanToClaudeCode: "repowise.handPlanToClaudeCode",/** The one-time "publish to repowise.dev" prompt; fired after setup succeeds. */offerPublish: "repowise.offerPublish",+ /** Re-asks every Repowise tree; bound to the "Retry" row of a failed load. */+ retryTrees: "repowise.retryTrees",} as const;/**diff --git a/packages/vscode/src/features/trees.ts b/packages/vscode/src/features/trees.tsindex 8e55fe167..479dd9b81 100644--- a/packages/vscode/src/features/trees.ts+++ b/packages/vscode/src/features/trees.ts@@ -2,6 +2,8 @@ import * as vscode from "vscode";import type { RepowiseContext } from "../core/context";import { registerFindingsTree } from "./trees/findings";import { registerRefactoringTree } from "./trees/refactoring";+import { retryMountedTrees } from "./trees/shared";+import { InternalCommands } from "../constants";/*** Instantiates the two activity-bar tree views (Findings, Refactoring) and@@ -15,5 +17,6 @@ export function registerTrees(ctx: RepowiseContext): vscode.Disposable {return vscode.Disposable.from(registerFindingsTree(ctx),registerRefactoringTree(ctx),+ vscode.commands.registerCommand(InternalCommands.retryTrees, retryMountedTrees),);}diff --git a/packages/vscode/src/features/trees/deadCode.ts b/packages/vscode/src/features/trees/deadCode.tsindex 8de404959..803a08378 100644--- a/packages/vscode/src/features/trees/deadCode.ts+++ b/packages/vscode/src/features/trees/deadCode.ts@@ -1,5 +1,5 @@import * as vscode from "vscode";-import { listDeadCode } from "@repowise-dev/api-client/dead-code";+import { getDeadCodeSummary, listDeadCode } from "@repowise-dev/api-client/dead-code";import type { DeadCodeFindingResponse } from "@repowise-dev/api-client/types";import {baseName,@@ -9,6 +9,7 @@ import {} from "./shared";const FINDINGS_KEY = "deadcode:findings";+const SUMMARY_KEY = "deadcode:summary";/** Confidence tiers, most-confident first, with their inclusive lower bounds. */const TIERS: Array<{ key: string; label: string; min: number }> = [@@ -31,7 +32,19 @@ export class DeadCodeTreeProvider extends RepowiseTreeProvider {const findings = await this.cached(FINDINGS_KEY, () =>listDeadCode(repoId, { limit: 500 }),);- if (findings.length === 0) return [this.messageNode("No dead code")];+ if (findings.length === 0) {+ // A failed summary throws to the tree's error row, never to "clean".+ const summary = await this.cached(SUMMARY_KEY, () => getDeadCodeSummary(repoId));+ // No findings only means "clean" once an analysis has actually run.+ return [+ summary.analyzed_at+ ? this.messageNode(+ "No dead code",+ new vscode.ThemeIcon("pass", new vscode.ThemeColor("testing.iconPassed")),+ )+ : this.messageNode("Not analysed yet"),+ ];+ }const roots: RepoTreeNode[] = [];for (const tier of TIERS) {diff --git a/packages/vscode/src/features/trees/shared.ts b/packages/vscode/src/features/trees/shared.tsindex 4f506ab9a..f59bf1f31 100644--- a/packages/vscode/src/features/trees/shared.ts+++ b/packages/vscode/src/features/trees/shared.ts@@ -1,6 +1,14 @@import * as vscode from "vscode";import * as path from "node:path";import type { RepowiseContext } from "../../core/context";+import { InternalCommands } from "../../constants";++/** Providers behind a mounted view, so a failed row can re-ask all of them. */+const mountedProviders = new Set<RepowiseTreeProvider>();++export function retryMountedTrees(): void {+ for (const provider of mountedProviders) provider.refresh();+}/*** One node in a Repowise activity-bar tree. Providers build a plain node tree@@ -162,11 +170,14 @@ export abstract class RepowiseTreeProvider}/** A friendly single leaf for empty results ("No findings", etc). */- protected messageNode(label: string, icon = "info"): RepoTreeNode {+ protected messageNode(+ label: string,+ icon: string | vscode.ThemeIcon = "info",+ ): RepoTreeNode {return {key: `msg:${label}`,label,- icon: new vscode.ThemeIcon(icon),+ icon: typeof icon === "string" ? new vscode.ThemeIcon(icon) : icon,collapsibleState: vscode.TreeItemCollapsibleState.None,};}@@ -183,8 +194,10 @@ export function errorNode(): RepoTreeNode {return {key: "error",label: "Could not load (see log)",+ description: "Click to retry",icon: new vscode.ThemeIcon("warning"),collapsibleState: vscode.TreeItemCollapsibleState.None,+ command: { command: InternalCommands.retryTrees, title: "Retry" },};}@@ -201,9 +214,11 @@ export function mountView(const treeView = vscode.window.createTreeView(viewId, {treeDataProvider: provider,});+ mountedProviders.add(provider);const subs: vscode.Disposable[] = [treeView,provider,+ new vscode.Disposable(() => mountedProviders.delete(provider)),provider.onDidChangeBadge((badge) => {treeView.badge = badge;}),diff --git a/packages/vscode/webview/src/runtime/chrome.tsx b/packages/vscode/webview/src/runtime/chrome.tsxindex 3fba9edbc..f6638979b 100644--- a/packages/vscode/webview/src/runtime/chrome.tsx+++ b/packages/vscode/webview/src/runtime/chrome.tsx@@ -70,7 +70,7 @@ export function PanelChrome({ view, host }: { view: PanelViewId; host: WebviewHoclassName={"ml-auto shrink-0 rounded-md p-1.5 transition-colors " +(view === "settings"- ? "bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]"+ ? "bg-[var(--color-bg-selected)] text-[var(--color-text-primary)]": "text-[var(--color-text-tertiary)] hover:bg-[var(--color-bg-surface)] hover:text-[var(--color-text-primary)]")}>@@ -100,7 +100,7 @@ function Tab({className={"flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors " +(active- ? "bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]"+ ? "relative bg-[var(--color-bg-selected)] text-[var(--color-text-primary)] after:absolute after:inset-x-1.5 after:-bottom-1 after:h-0.5 after:rounded-full after:bg-[var(--color-accent-primary)]": "text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-surface)] hover:text-[var(--color-text-primary)]")}>diff --git a/packages/vscode/webview/src/runtime/mount.tsx b/packages/vscode/webview/src/runtime/mount.tsxindex e9c6bba20..c51021d01 100644--- a/packages/vscode/webview/src/runtime/mount.tsx+++ b/packages/vscode/webview/src/runtime/mount.tsx@@ -14,6 +14,7 @@ import type {WebviewViewId,} from "../../../src/shared/webviewMessages";import { createHost, type WebviewHost } from "./rpc";+import { ApiError, OrbLoader, ORB_STATE } from "@repowise-dev/ui/shared";import { PanelChrome } from "./chrome";import { initTheme, setThemePreference } from "./theme";@@ -78,8 +79,8 @@ function Bootstrap<V extends WebviewViewId>({ view, host, App }: BootstrapProps<if (!init || !repo) {return (- <div role="status" className="flex h-screen items-center justify-center text-[var(--color-text-tertiary)]">- Loading Repowise…+ <div className="flex h-screen items-center justify-center">+ <OrbLoader state={ORB_STATE.page} size={64} label="Loading Repowise" /></div>);}@@ -121,10 +122,12 @@ class ErrorBoundary extends Component<{ children: ReactNode }, ErrorBoundaryStatrender(): ReactNode {if (this.state.error) {return (- <div role="alert" className="m-6 rounded-lg border border-[var(--color-error)] p-4 text-[15px]">- <p className="font-medium text-[var(--color-error)]">This view hit an error.</p>- <p className="mt-2 text-[var(--color-text-secondary)]">{this.state.error.message}</p>- </div>+ <ApiError+ className="m-6"+ title="This view hit an error."+ message={this.state.error.message}+ onRetry={() => this.setState({ error: null })}+ />);}return this.props.children;diff --git a/packages/vscode/webview/src/styles/theme-bridge.css b/packages/vscode/webview/src/styles/theme-bridge.cssindex ed7d2dc1b..d1422170f 100644--- a/packages/vscode/webview/src/styles/theme-bridge.css+++ b/packages/vscode/webview/src/styles/theme-bridge.css@@ -38,6 +38,9 @@--color-bg-inset: var(--vscode-input-background, var(--vscode-editor-background));--color-bg-inset-on-overlay: var(--vscode-input-background, var(--vscode-editor-background));--color-bg-wash-hover: var(--vscode-list-hoverBackground);+ /* Selected rows and chips follow list selection; inactive when unfocused. */+ --color-bg-selected: var(--vscode-list-inactiveSelectionBackground, var(--vscode-list-activeSelectionBackground));+ --color-bg-selected-hover: var(--vscode-list-activeSelectionBackground, var(--vscode-list-hoverBackground));--color-border-default: var(--vscode-panel-border, var(--vscode-widget-border, currentColor));--color-text-primary: var(--vscode-foreground);--color-text-secondary: var(--vscode-descriptionForeground, var(--vscode-foreground));diff --git a/packages/vscode/webview/src/views/decisions/App.tsx b/packages/vscode/webview/src/views/decisions/App.tsxindex 584867ecd..3d89af27f 100644--- a/packages/vscode/webview/src/views/decisions/App.tsx+++ b/packages/vscode/webview/src/views/decisions/App.tsx@@ -189,7 +189,7 @@ export function App({ host, refreshToken }: ViewProps<"decisions">) {className={"inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition-colors " +(on- ? "border-[var(--color-accent-primary)] bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]"+ ? "border-[var(--color-border-hover)] bg-[var(--color-bg-selected)] text-[var(--color-text-primary)]": "border-[var(--color-border-default)] text-[var(--color-text-secondary)] hover:border-[var(--color-border-hover)]")}>diff --git a/packages/vscode/webview/src/views/docs/App.tsx b/packages/vscode/webview/src/views/docs/App.tsxindex c0bc90ee8..74680f9e6 100644--- a/packages/vscode/webview/src/views/docs/App.tsx+++ b/packages/vscode/webview/src/views/docs/App.tsx@@ -1,12 +1,6 @@import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import {- AlertCircle,- BookOpen,- FileCode,- Loader2,- PanelLeft,- PanelLeftClose,-} from "lucide-react";+import { BookOpen, FileCode, PanelLeft, PanelLeftClose } from "lucide-react";+import { ApiError, EmptyState, OrbLoader, ORB_STATE } from "@repowise-dev/ui/shared";import type { DocPage } from "@repowise-dev/types/docs";import { DocsTree } from "@repowise-dev/ui/docs/docs-tree";import { DocsReader, type ReaderLinkComponent } from "@repowise-dev/ui/docs/docs-reader";@@ -107,30 +101,29 @@ export function App({ host, repo, params, refreshToken }: ViewProps<"docs">) {if (error) {return (- <CenteredState- icon={<AlertCircle className="h-8 w-8 text-[var(--color-error)]" />}- title="Could not load docs"- detail={error}- />+ <div className="flex h-full items-center justify-center px-8">+ <ApiError title="Could not load docs" message={error} />+ </div>);}if (!pages) {return (- <CenteredState- icon={<Loader2 className="h-6 w-6 animate-spin text-[var(--color-accent-primary)]" />}- title="Loading docs…"- />+ <div className="flex h-full items-center justify-center">+ <OrbLoader state={ORB_STATE.page} size={64} label="Loading docs" />+ </div>);}if (pages.length === 0) {return (- <CenteredState- icon={<BookOpen className="h-8 w-8 text-[var(--color-text-tertiary)]" />}- title="No documentation yet"- detail="Run a Repowise generation for this repository to browse its docs here."- />+ <div className="flex h-full items-center justify-center px-8">+ <EmptyState+ icon={<BookOpen />}+ title="No documentation yet"+ description="Run a Repowise generation for this repository to browse its docs here."+ />+ </div>);}@@ -239,23 +232,3 @@ function makeLink(host: WebviewHost, navigate: (pageId: string) => void): Reader);};}--function CenteredState({- icon,- title,- detail,-}: {- icon: React.ReactNode;- title: string;- detail?: string;-}) {- return (- <div className="flex h-full flex-col items-center justify-center gap-3 px-8 text-center">- {icon}- <p className="text-[15px] font-semibold text-[var(--color-text-primary)]">{title}</p>- {detail && (- <p className="max-w-sm text-xs text-[var(--color-text-secondary)]">{detail}</p>- )}- </div>- );-}diff --git a/packages/vscode/webview/src/views/graph/App.tsx b/packages/vscode/webview/src/views/graph/App.tsxindex a4a73d66c..00fb15461 100644--- a/packages/vscode/webview/src/views/graph/App.tsx+++ b/packages/vscode/webview/src/views/graph/App.tsx@@ -10,6 +10,7 @@ import {GraphFlow,type GraphFlowProps as GraphFlowShellProps,} from "@repowise-dev/ui/graph/graph-flow";+import { ApiError } from "@repowise-dev/ui/shared";import { PathFinderPanel } from "@repowise-dev/ui/graph/path-finder-panel";import { GraphCommunityPanel } from "@repowise-dev/ui/graph/graph-community-panel";import type {@@ -57,12 +58,7 @@ export function App({ host, params, repo, refreshToken }: ViewProps<"graph">) {<div className="relative min-h-0 flex-1">{data.error ? (<div className="flex h-full items-center justify-center p-6">- <div role="alert" className="max-w-md rounded-lg border border-[var(--color-error)] bg-[var(--color-bg-elevated)] p-4 text-[15px]">- <p className="font-medium text-[var(--color-error)]">- Could not load the knowledge graph.- </p>- <p className="mt-2 text-[var(--color-text-secondary)]">{data.error}</p>- </div>+ <ApiError title="Could not load the knowledge graph." message={data.error} /></div>) : (<GraphFlowdiff --git a/packages/vscode/webview/src/views/health/chrome.tsx b/packages/vscode/webview/src/views/health/chrome.tsxindex 6dd259259..e84b14f83 100644--- a/packages/vscode/webview/src/views/health/chrome.tsx+++ b/packages/vscode/webview/src/views/health/chrome.tsx@@ -4,6 +4,8 @@* themes render correctly via the `.dark` class on the root.*/+import { ApiError } from "@repowise-dev/ui/shared";+/** A pulsing placeholder block. */function Block({ className }: { className: string }) {return <div className={`animate-pulse rounded-lg bg-[var(--color-bg-inset)] ${className}`} />;@@ -64,15 +66,10 @@ export function DashboardSkeleton() {export function DashboardError({ message }: { message: string }) {return (<div className="mx-auto max-w-[1400px] px-6 py-6">- <div className="rounded-xl border border-[var(--color-error)] bg-[var(--color-bg-surface)] p-6">- <h2 className="text-[15px] font-semibold text-[var(--color-error)]">- Health data is unavailable- </h2>- <p className="mt-2 text-[15px] text-[var(--color-text-secondary)]">{message}</p>- <p className="mt-3 text-xs text-[var(--color-text-tertiary)]">- Make sure the local Repowise server is running and this repository is indexed.- </p>- </div>+ <ApiError title="Health data is unavailable" message={message} />+ <p className="text-center text-xs text-[var(--color-text-tertiary)]">+ Make sure the local Repowise server is running and this repository is indexed.+ </p></div>);}diff --git a/packages/vscode/webview/src/views/home/App.tsx b/packages/vscode/webview/src/views/home/App.tsxindex 7f0832d80..a1b3fa3d5 100644--- a/packages/vscode/webview/src/views/home/App.tsx+++ b/packages/vscode/webview/src/views/home/App.tsx@@ -29,6 +29,7 @@ import {Sun,Wrench,} from "lucide-react";+import { EmptyState } from "@repowise-dev/ui/shared";import { scoreTextColor } from "@repowise-dev/ui/health/tokens";import { formatScore } from "@repowise-dev/types/health";import type {@@ -265,7 +266,7 @@ function Footer({ host }: { host: WebviewHost }) {aria-label={label}className={pref === value- ? "rounded-md bg-[var(--color-accent-primary)] p-1 text-[var(--color-text-on-accent)]"+ ? "rounded-md bg-[var(--color-bg-selected)] p-1 text-[var(--color-text-primary)]": "rounded-md p-1 text-[var(--color-text-tertiary)] transition-colors hover:text-[var(--color-text-primary)]"}>@@ -342,9 +343,11 @@ function Hero({) : null}</>) : (- <p className="mt-3 text-xs text-[var(--color-text-secondary)]">- No health data yet. Scores appear after the first full index.- </p>+ <EmptyState+ size="compact"+ title="No health data yet"+ description="Scores appear after the first full index."+ />)}</section>);diff --git a/packages/vscode/webview/src/views/refactoring/App.tsx b/packages/vscode/webview/src/views/refactoring/App.tsxindex 953d61713..e934e7f6d 100644--- a/packages/vscode/webview/src/views/refactoring/App.tsx+++ b/packages/vscode/webview/src/views/refactoring/App.tsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useState, type ReactNode } from "react";import { ArrowLeft, Layers, Sparkles } from "lucide-react";+import { ApiError, EmptyState, OrbLoader, ORB_STATE } from "@repowise-dev/ui/shared";import {CONFIDENCE_DOT,CONFIDENCE_LABEL,@@ -99,18 +100,23 @@ function OpportunityDetailView({[opportunityId, refreshToken],);- if (state.status === "loading") return <CenteredNote>Loading opportunity…</CenteredNote>;+ if (state.status === "loading") return <LoadingNote label="Loading opportunity" />;if (state.status === "error") {return <ErrorNote title="Could not load the opportunity.">{state.message}</ErrorNote>;}const detail = state.data;if (!detail.found) {return (- <ErrorNote title="Opportunity unavailable.">- {detail.model_state?.state === "stale_model"- ? "It was written by an older analysis model. Re-index and open it again."- : "It may have been resolved by a later analysis."}- </ErrorNote>+ <div className="p-6">+ <EmptyState+ title="Opportunity unavailable"+ description={+ detail.model_state?.state === "stale_model"+ ? "It was written by an older analysis model. Re-index and open it again."+ : "It may have been resolved by a later analysis."+ }+ />+ </div>);}@@ -250,7 +256,7 @@ function PlanDetailView({ host, planId, refreshToken, onBack }: PlanDetailViewPrconst state = useAsync(() => host.api.refactoringPlan(planId), [planId, refreshToken]);const onFileClick = useFileClickHandler(host);- if (state.status === "loading") return <CenteredNote>Loading plan…</CenteredNote>;+ if (state.status === "loading") return <LoadingNote label="Loading plan" />;if (state.status === "error") {return <ErrorNote title="Could not load this refactoring plan.">{state.message}</ErrorNote>;}@@ -476,7 +482,7 @@ function PlanListView({ host, filePath, refreshToken, onOpen }: PlanListViewProp);if (state.status === "loading") {- return <CenteredNote>Loading refactoring opportunities…</CenteredNote>;+ return <LoadingNote label="Loading refactoring opportunities" />;}if (state.status === "error") {return <ErrorNote title="Could not load refactoring opportunities.">{state.message}</ErrorNote>;@@ -485,11 +491,15 @@ function PlanListView({ host, filePath, refreshToken, onOpen }: PlanListViewPropconst page = state.data;if (page.items.length === 0) {return (- <CenteredNote>- {filePath- ? `No refactoring opportunities for ${filePath}.`- : "No refactoring opportunities found."}- </CenteredNote>+ <div className="p-6">+ <EmptyState+ title={+ filePath+ ? `No refactoring opportunities for ${filePath}`+ : "No refactoring opportunities found"+ }+ />+ </div>);}@@ -567,19 +577,14 @@ function Badge({);}-function CenteredNote({ children }: { children: ReactNode }) {+function LoadingNote({ label }: { label: string }) {return (- <div className="flex h-full items-center justify-center px-6 text-center text-[15px] text-[var(--color-text-tertiary)]">- {children}+ <div className="flex h-full items-center justify-center">+ <OrbLoader state={ORB_STATE.analysing} size={64} label={label} /></div>);}-function ErrorNote({ title, children }: { title: string; children: ReactNode }) {- return (- <div role="alert" className="m-6 rounded-lg border border-[var(--color-error)] p-4 text-[15px]">- <p className="font-medium text-[var(--color-error)]">{title}</p>- <p className="mt-2 text-[var(--color-text-secondary)]">{children}</p>- </div>- );+function ErrorNote({ title, children }: { title: string; children: string }) {+ return <ApiError className="m-6" title={title} message={children} />;}diff --git a/packages/vscode/webview/src/views/settings/App.tsx b/packages/vscode/webview/src/views/settings/App.tsxindex 669872dac..db68a7b3b 100644--- a/packages/vscode/webview/src/views/settings/App.tsx+++ b/packages/vscode/webview/src/views/settings/App.tsx@@ -324,7 +324,7 @@ export function App({ host, refreshToken }: ViewProps<"settings">) {return (<div className="mx-auto flex min-h-full max-w-3xl flex-col gap-6 bg-[var(--color-bg-root)] px-6 py-6 sm:gap-8"><header className="flex items-center gap-2.5">- <span className="grid h-8 w-8 shrink-0 place-items-center rounded-lg bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]">+ <span className="grid h-8 w-8 shrink-0 place-items-center rounded-lg bg-[var(--color-bg-selected)] text-[var(--color-text-secondary)]"><Settings2 className="h-4 w-4" /></span><div className="min-w-0 flex-1">@@ -568,7 +568,7 @@ function MultiSelect({className={"rounded-full border px-2 py-0.5 text-xs transition-colors disabled:cursor-not-allowed " +(on- ? "border-[var(--color-accent-primary)] bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]"+ ? "border-[var(--color-border-hover)] bg-[var(--color-bg-selected)] text-[var(--color-text-primary)]": "border-[var(--color-border-default)] text-[var(--color-text-tertiary)] hover:text-[var(--color-text-primary)]")}>