Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: links and warnings follow the theme

ogsamrat422adedaee2f
diff --git a/apps/app/src/components/chat/message-list.tsx b/apps/app/src/components/chat/message-list.tsx
index 5f342355..4a9d6859 100644
--- a/apps/app/src/components/chat/message-list.tsx
+++ b/apps/app/src/components/chat/message-list.tsx
@@ -223,7 +223,7 @@ const ToolMessageInner = ({ part }: ToolMessageProps) => {
<CirclePause aria-hidden="true" className="mt-0.5 size-4 shrink-0" />
<div>
<div className="font-medium">Waiting for your action</div>
- <div className="text-xs text-amber-11">Choose an option or approve the request to continue.</div>
+ <div className="text-xs text-warning">Choose an option or approve the request to continue.</div>
</div>
</div>
)
@@ -661,7 +661,7 @@ function renderPlainTextWithLinks(text: string, highlightQuery: string | undefin
href={url}
target="_blank"
rel="noreferrer noopener"
- className="text-indigo-10 transition-colors hover:text-indigo-8 break-all"
+ className="text-[var(--omnirush-link,var(--indigo-10))] transition-colors hover:text-[var(--omnirush-link-hover,var(--indigo-8))] break-all"
>
{favicon ? (
<img
diff --git a/apps/app/src/components/chat/subagent-run-line.tsx b/apps/app/src/components/chat/subagent-run-line.tsx
index 95d868ec..499b4488 100644
--- a/apps/app/src/components/chat/subagent-run-line.tsx
+++ b/apps/app/src/components/chat/subagent-run-line.tsx
@@ -151,11 +151,11 @@ export function SubagentRunLine({ part, className, parentActive = true, parentLa
/>
) : null}
</span>
- <span className={cn("min-w-0 truncate text-xs", permissionPending ? "font-medium text-amber-11" : "text-muted-foreground/70")}>
+ <span className={cn("min-w-0 truncate text-xs", permissionPending ? "font-medium text-warning" : "text-muted-foreground/70")}>
{status}
{!inFlight && !isFailed && duration ? ` · ${duration}` : ""}
{ranOn ? (
- <span data-subagent-model={ranOn.model} data-subagent-model-fallback={ranOn.fallbackFrom ?? undefined} className={ranOn.fallbackFrom ? "text-amber-11" : undefined}>
+ <span data-subagent-model={ranOn.model} data-subagent-model-fallback={ranOn.fallbackFrom ?? undefined} className={ranOn.fallbackFrom ? "text-warning" : undefined}>
{` · ${resolveModelDisplayName(ranOn.model)}`}
{ranOn.fallbackFrom ? ` (${resolveModelDisplayName(ranOn.fallbackFrom)} unavailable)` : ""}
</span>
diff --git a/apps/app/src/components/chat/tool-aggregate-group.tsx b/apps/app/src/components/chat/tool-aggregate-group.tsx
index 9b4c0ef6..59f892a2 100644
--- a/apps/app/src/components/chat/tool-aggregate-group.tsx
+++ b/apps/app/src/components/chat/tool-aggregate-group.tsx
@@ -297,7 +297,7 @@ export function ToolAggregateGroup({ parts, thoughts = [], className }: ToolAggr
) : null}
</div>
{status === "waiting" ? (
- <div className="mt-1 flex items-center gap-1.5 text-xs text-amber-11" role="status">
+ <div className="mt-1 flex items-center gap-1.5 text-xs text-warning" role="status">
<CirclePause aria-hidden="true" className="size-3.5 shrink-0" />
<span>Choose an option or approve the request to continue.</span>
</div>
@@ -346,7 +346,7 @@ export function ToolAggregateGroup({ parts, thoughts = [], className }: ToolAggr
</button>
{aggregateLifecycle === "waiting" ? (
- <div className="mt-1 flex items-center gap-1.5 text-xs text-amber-11" role="status">
+ <div className="mt-1 flex items-center gap-1.5 text-xs text-warning" role="status">
<CirclePause aria-hidden="true" className="size-3.5 shrink-0" />
<span>Choose an option or approve the request to continue.</span>
</div>
@@ -417,7 +417,7 @@ export function ToolAggregateGroup({ parts, thoughts = [], className }: ToolAggr
{!singleCommand ? (
<div className="flex min-w-0 items-center gap-2 text-sm text-muted-foreground">
{status === "waiting" ? (
- <CirclePause aria-label="Waiting" className="size-3.5 shrink-0 text-amber-11" />
+ <CirclePause aria-label="Waiting" className="size-3.5 shrink-0 text-warning" />
) : null}
{status === "unknown" ? (
<CircleHelp aria-label="Status unknown" className="size-3.5 shrink-0" />
diff --git a/apps/app/src/components/markdown/markdown-primitive.ts b/apps/app/src/components/markdown/markdown-primitive.ts
index e026f1ac..00858afa 100644
--- a/apps/app/src/components/markdown/markdown-primitive.ts
+++ b/apps/app/src/components/markdown/markdown-primitive.ts
@@ -340,7 +340,7 @@ function renderVideo(href: string, label: string) {
const fileLink = remote
? `href="${escapeAttribute(safeHref(href))}" target="_blank" rel="noopener noreferrer"`
: `href="#" data-omnirush-inline-code-path="${escapeAttribute(href)}"`;
- return `<span class="my-4 inline-block w-full max-w-lg align-top"><video data-omnirush-video-path="${escapeAttribute(href)}"${source} controls playsinline preload="metadata" aria-label="${escapeAttribute(label)}" class="block max-h-80 w-full rounded-lg border border-border/70 bg-black"></video><span data-omnirush-video-error="" hidden class="text-sm text-muted-foreground">Video preview unavailable. Open the file to play it.</span><a ${fileLink} class="text-sm text-indigo-10">${escapeHtml(label)}</a></span>`;
+ return `<span class="my-4 inline-block w-full max-w-lg align-top"><video data-omnirush-video-path="${escapeAttribute(href)}"${source} controls playsinline preload="metadata" aria-label="${escapeAttribute(label)}" class="block max-h-80 w-full rounded-lg border border-border/70 bg-black"></video><span data-omnirush-video-error="" hidden class="text-sm text-muted-foreground">Video preview unavailable. Open the file to play it.</span><a ${fileLink} class="text-sm text-[var(--omnirush-link,var(--indigo-10))]">${escapeHtml(label)}</a></span>`;
}
function renderLink(profile: MarkdownProfile, href: string, title: string | null | undefined, text: string) {
@@ -365,10 +365,10 @@ function renderLink(profile: MarkdownProfile, href: string, title: string | null
? `<img src="${escapeAttribute(favicon)}" alt="" aria-hidden="true" loading="lazy" decoding="async" class="me-1 inline-block size-3.5 rounded-[3px] align-[-2px]" />`
: "";
- return `<a href="${safe}" data-omnirush-link-href="${originalHref}"${titleAttr} target="_blank" rel="noreferrer noopener" class="text-indigo-10 no-underline transition-colors hover:text-indigo-8">${faviconHtml}${text}</a>`;
+ return `<a href="${safe}" data-omnirush-link-href="${originalHref}"${titleAttr} target="_blank" rel="noreferrer noopener" class="text-[var(--omnirush-link,var(--indigo-10))] no-underline transition-colors hover:text-[var(--omnirush-link-hover,var(--indigo-8))]">${faviconHtml}${text}</a>`;
}
- return `<a href="${safe}"${titleAttr} target="_blank" rel="noreferrer noopener" class="text-indigo-10 no-underline transition-colors hover:text-indigo-8">${text}</a>`;
+ return `<a href="${safe}"${titleAttr} target="_blank" rel="noreferrer noopener" class="text-[var(--omnirush-link,var(--indigo-10))] no-underline transition-colors hover:text-[var(--omnirush-link-hover,var(--indigo-8))]">${text}</a>`;
}
function renderImage(profile: MarkdownProfile, href: string, title: string | null | undefined, text: string) {
diff --git a/apps/app/src/components/tools/env-var-request.tsx b/apps/app/src/components/tools/env-var-request.tsx
index 4390ae02..dcd21325 100644
--- a/apps/app/src/components/tools/env-var-request.tsx
+++ b/apps/app/src/components/tools/env-var-request.tsx
@@ -100,7 +100,7 @@ export function EnvVarRequestTool({ part }: EnvVarRequestToolProps) {
/>
{!canModify ? (
- <p className="rounded-lg border border-amber-6/40 bg-amber-3/20 px-3 py-2 text-xs text-amber-11">
+ <p className="rounded-lg border border-amber-6/40 bg-amber-3/20 px-3 py-2 text-xs text-warning">
Environment variables can only be edited from a local desktop workspace.
</p>
) : null}
@@ -134,7 +134,7 @@ export function EnvVarRequestTool({ part }: EnvVarRequestToolProps) {
) : null}
</div>
- <p className={cn("text-[11px] leading-4 text-dls-tertiary", saved && pendingChanges ? "text-amber-11" : "")}>
+ <p className={cn("text-[11px] leading-4 text-dls-tertiary", saved && pendingChanges ? "text-warning" : "")}>
{saved && pendingChanges
? "Saved locally. Apply changes so local agents can read the latest value."
: "The token is written through the same local Environment Variables store used by Settings."}
diff --git a/apps/app/src/components/tools/omnirush-automation-proposal.tsx b/apps/app/src/components/tools/omnirush-automation-proposal.tsx
index d179e370..cbe2686b 100644
--- a/apps/app/src/components/tools/omnirush-automation-proposal.tsx
+++ b/apps/app/src/components/tools/omnirush-automation-proposal.tsx
@@ -200,13 +200,13 @@ export function OmniRushAutomationProposalTool({ part }: { part: DynamicToolUIPa
</div>
{blocker && !created ? (
- <div className="flex items-center gap-2 border-t border-dls-border px-4 py-2 text-xs text-amber-11">
+ <div className="flex items-center gap-2 border-t border-dls-border px-4 py-2 text-xs text-warning">
<AlertTriangle className="size-3.5 shrink-0" />
<span className="min-w-0 flex-1">{blocker}</span>
</div>
) : null}
{resolved?.resolution === "fallback" && !created ? (
- <div className="flex items-center gap-2 border-t border-dls-border px-4 py-2 text-xs text-amber-11">
+ <div className="flex items-center gap-2 border-t border-dls-border px-4 py-2 text-xs text-warning">
<AlertTriangle className="size-3.5 shrink-0" />
<span className="min-w-0 flex-1">
The proposed model isn't available for Automations, so runs use the free starter model. You can change the model after creating.
diff --git a/apps/app/src/components/tools/omnirush-session-create.tsx b/apps/app/src/components/tools/omnirush-session-create.tsx
index 836b0fcb..b512797c 100644
--- a/apps/app/src/components/tools/omnirush-session-create.tsx
+++ b/apps/app/src/components/tools/omnirush-session-create.tsx
@@ -121,7 +121,7 @@ export function OmniRushSessionCreateTool({ part }: { part: DynamicToolUIPart })
<div className="flex items-start gap-3 border-b border-dls-border px-4 py-3">
<div className={allCreated
? "mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full border border-green-6/35 bg-green-3/30 text-green-11"
- : "mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full border border-amber-6/35 bg-amber-3/30 text-amber-11"
+ : "mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full border border-amber-6/35 bg-amber-3/30 text-warning"
}>
<HeaderIcon className="size-4" />
</div>
diff --git a/apps/app/src/components/ui/sonner.tsx b/apps/app/src/components/ui/sonner.tsx
index 35fba71a..a7f819a8 100644
--- a/apps/app/src/components/ui/sonner.tsx
+++ b/apps/app/src/components/ui/sonner.tsx
@@ -86,7 +86,7 @@ const toastTile = cva(
default: "text-sky-11",
success: "text-emerald-11",
info: "text-sky-11",
- warning: "text-amber-11",
+ warning: "text-warning",
error: "text-red-11",
},
size: {
diff --git a/apps/app/src/components/ui/tool.tsx b/apps/app/src/components/ui/tool.tsx
index 572dd791..ec771595 100644
--- a/apps/app/src/components/ui/tool.tsx
+++ b/apps/app/src/components/ui/tool.tsx
@@ -225,7 +225,7 @@ const Tool = ({
: reconnectAction && reconnectState === "failed"
? "border-destructive/30 bg-destructive/5 text-destructive"
: reconnectAction
- ? "border-amber-7/30 bg-amber-3/50 text-amber-11"
+ ? "border-amber-7/30 bg-amber-3/50 text-warning"
: "border-border/70 text-muted-foreground",
)}
title={`${errorAttribution.confidence}: ${errorAttribution.description}`}
@@ -246,7 +246,7 @@ const Tool = ({
? "border-green-7/40 bg-green-3/60 text-green-11 hover:border-green-7/60 hover:bg-green-4/70"
: reconnectState === "failed"
? "border-destructive/30 bg-destructive/5 text-destructive hover:border-destructive/50 hover:bg-destructive/10"
- : "border-amber-7/40 bg-amber-3/60 text-amber-11 hover:border-amber-7/60 hover:bg-amber-4/70",
+ : "border-amber-7/40 bg-amber-3/60 text-warning hover:border-amber-7/60 hover:bg-amber-4/70",
)}
data-testid="chat-mcp-reconnect-action"
disabled={reconnectPresentation?.disabled}
diff --git a/apps/app/src/react-app/design-system/extension-card.tsx b/apps/app/src/react-app/design-system/extension-card.tsx
index 4b707b8c..465c0c7e 100644
--- a/apps/app/src/react-app/design-system/extension-card.tsx
+++ b/apps/app/src/react-app/design-system/extension-card.tsx
@@ -58,7 +58,7 @@ const taxonomyStyle: Record<ExtensionTaxonomy, string> = {
app: "bg-teal-3 text-teal-11",
connection: "bg-blue-3 text-blue-11",
mcp: "bg-dls-hover text-dls-secondary",
- skill: "bg-amber-3 text-amber-11",
+ skill: "bg-amber-3 text-warning",
command: "bg-orange-3 text-orange-11",
agent: "bg-pink-3 text-pink-11",
plugin: "bg-violet-3 text-violet-11",
@@ -131,7 +131,7 @@ function ExtensionBadges(props: {
{props.connectedLabel}
</span>
) : props.readiness === "partial" ? (
- <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-amber-11">
+ <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-warning">
Partially set up
</span>
) : (
@@ -150,12 +150,12 @@ function ExtensionBadges(props: {
</span>
) : null}
{props.beta ? (
- <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-amber-11">
+ <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-warning">
{t("common.beta")}
</span>
) : null}
{props.disabledReason ? (
- <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-amber-11">
+ <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-warning">
Disabled
</span>
) : null}
@@ -275,7 +275,7 @@ export function ExtensionCard(props: ExtensionCardProps) {
</span>
) : null}
{beta ? (
- <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-amber-11">
+ <span className="shrink-0 rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-warning">
{t("common.beta")}
</span>
) : null}
@@ -319,7 +319,7 @@ export function ExtensionCard(props: ExtensionCardProps) {
<div className="mt-1 text-[11px] text-dls-secondary">{meta}</div>
) : null}
{disabledReason ? (
- <div className="mt-2 text-[11px] font-medium text-amber-11">
+ <div className="mt-2 text-[11px] font-medium text-warning">
{disabledReason}
</div>
) : null}
diff --git a/apps/app/src/react-app/design-system/extension-detail-modal.tsx b/apps/app/src/react-app/design-system/extension-detail-modal.tsx
index 42431e0b..945435d5 100644
--- a/apps/app/src/react-app/design-system/extension-detail-modal.tsx
+++ b/apps/app/src/react-app/design-system/extension-detail-modal.tsx
@@ -291,7 +291,7 @@ export function ExtensionDetailModal({
</span>
) : null}
{beta ? (
- <span className="rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-amber-11">
+ <span className="rounded-md bg-amber-3 px-1.5 py-0.5 text-[10px] font-medium text-warning">
Beta
</span>
) : null}
@@ -559,14 +559,14 @@ export function ExtensionDetailModal({
{beta ? (
<div className="flex items-center justify-between text-sm">
<span className="text-muted-foreground">Release stage</span>
- <span className="font-medium text-amber-11">Beta</span>
+ <span className="font-medium text-warning">Beta</span>
</div>
) : null}
{disabledReason ? (
<div className="flex items-center justify-between gap-4 text-sm">
<span className="text-muted-foreground">Availability</span>
- <span className="text-right font-medium text-amber-11">{disabledReason}</span>
+ <span className="text-right font-medium text-warning">{disabledReason}</span>
</div>
) : null}
</div>
diff --git a/apps/app/src/react-app/design-system/modals/confirm-modal.tsx b/apps/app/src/react-app/design-system/modals/confirm-modal.tsx
index eb79e6d6..9fe9804d 100644
--- a/apps/app/src/react-app/design-system/modals/confirm-modal.tsx
+++ b/apps/app/src/react-app/design-system/modals/confirm-modal.tsx
@@ -34,7 +34,7 @@ export function ConfirmModal(props: ConfirmModalProps) {
const confirmVariant = props.confirmButtonVariant ?? (variant === "danger" ? "destructive" : undefined);
const cancelVariant = props.cancelButtonVariant ?? "outline";
- let iconTileClass = "bg-amber-3/50 text-amber-11";
+ let iconTileClass = "bg-amber-3/50 text-warning";
if (variant === "danger") iconTileClass = "bg-red-3/50 text-red-11";
return (
diff --git a/apps/app/src/react-app/domains/cloud/omnirush-web-access-gate.tsx b/apps/app/src/react-app/domains/cloud/omnirush-web-access-gate.tsx
index 8cda5f1e..77e78850 100644
--- a/apps/app/src/react-app/domains/cloud/omnirush-web-access-gate.tsx
+++ b/apps/app/src/react-app/domains/cloud/omnirush-web-access-gate.tsx
@@ -84,7 +84,7 @@ export function OmniRushWebAccessGateScreen(props: {
<div className="flex size-12 shrink-0 items-center justify-center rounded-2xl border border-border bg-muted/40">
{checking
? <OwDotTicker size="lg" />
- : <AlertTriangle className="size-5 text-amber-11" aria-hidden="true" />}
+ : <AlertTriangle className="size-5 text-warning" aria-hidden="true" />}
</div>
<div className="min-w-0 flex-1">
<p className="text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground">
diff --git a/apps/app/src/react-app/domains/connections/mcp-auth-modal.tsx b/apps/app/src/react-app/domains/connections/mcp-auth-modal.tsx
index 7ee1fc45..a929c044 100644
--- a/apps/app/src/react-app/domains/connections/mcp-auth-modal.tsx
+++ b/apps/app/src/react-app/domains/connections/mcp-auth-modal.tsx
@@ -666,7 +666,7 @@ export function McpAuthModal(props: McpAuthModalProps) {
{!isBusy && isPreparingReload ? (
<div className="space-y-4 rounded-xl border border-amber-6/60 bg-amber-2/40 px-5 py-6 text-center">
<div className="flex items-center justify-center">
- <Loader2 size={32} className="animate-spin text-amber-11" />
+ <Loader2 size={32} className="animate-spin text-warning" />
</div>
<div className="space-y-2">
<p className="text-sm font-medium text-gray-12">
@@ -692,7 +692,7 @@ export function McpAuthModal(props: McpAuthModalProps) {
</span>
<button
type="button"
- className="text-xs text-amber-11 underline underline-offset-2 transition-colors hover:text-amber-12 disabled:no-underline disabled:opacity-60"
+ className="text-xs text-warning underline underline-offset-2 transition-colors hover:text-amber-12 disabled:no-underline disabled:opacity-60"
onClick={() => void handleForceStopSession(session.id)}
disabled={forceStopBusySessionID === session.id}
>
diff --git a/apps/app/src/react-app/domains/connections/modals/add-mcp-modal.tsx b/apps/app/src/react-app/domains/connections/modals/add-mcp-modal.tsx
index efeecd75..53b303d6 100644
--- a/apps/app/src/react-app/domains/connections/modals/add-mcp-modal.tsx
+++ b/apps/app/src/react-app/domains/connections/modals/add-mcp-modal.tsx
@@ -270,7 +270,7 @@ export function AddMcpModal(props: AddMcpModalProps) {
value={state.oauthScope}
onChange={(event) => dispatch({ oauthScope: event.currentTarget.value })}
/>
- <div className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-[11px] leading-relaxed text-amber-11">
+ <div className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-[11px] leading-relaxed text-warning">
{t("mcp.oauth_secret_warning")}
</div>
</div>
diff --git a/apps/app/src/react-app/domains/connections/modals/claude-plugin-import-modal.tsx b/apps/app/src/react-app/domains/connections/modals/claude-plugin-import-modal.tsx
index 12abae53..696cd047 100644
--- a/apps/app/src/react-app/domains/connections/modals/claude-plugin-import-modal.tsx
+++ b/apps/app/src/react-app/domains/connections/modals/claude-plugin-import-modal.tsx
@@ -211,7 +211,7 @@ export function ClaudePluginImportModal(props: ClaudePluginImportModalProps) {
</div>
{state.preview.warnings.length > 0 ? (
- <div className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-amber-11">
+ <div className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-warning">
{state.preview.warnings.map((warning) => (
<div key={warning}>{warning}</div>
))}
diff --git a/apps/app/src/react-app/domains/quality/good-session.tsx b/apps/app/src/react-app/domains/quality/good-session.tsx
index 18e7cbcb..5b17facf 100644
--- a/apps/app/src/react-app/domains/quality/good-session.tsx
+++ b/apps/app/src/react-app/domains/quality/good-session.tsx
@@ -87,7 +87,7 @@ function CheckMark({ check }: { check: GoodSessionCheck }) {
className={cn(
"inline-flex items-center gap-1 whitespace-nowrap",
check.state === "pass" && "text-foreground",
- (check.state === "fail" || check.state === "warn") && "text-amber-11",
+ (check.state === "fail" || check.state === "warn") && "text-warning",
)}
>
{check.label}
@@ -271,7 +271,7 @@ export function GoodSessionLine({ result, announce = true }: { result: OmniRushG
) : copy.state === "pending" ? (
<span className="text-muted-foreground">{copy.text}</span>
) : (
- <span className="text-amber-11">
+ <span className="text-warning">
{copy.text}{" "}
<button
type="button"
@@ -298,9 +298,9 @@ function sentence(text: string): string {
return /[.!?…★]$/.test(trimmed) ? trimmed : `${trimmed}.`;
}
-const TONE_TEXT: Record<GoodSessionTone, string> = { amber: "text-amber-11", red: "text-red-11" };
+const TONE_TEXT: Record<GoodSessionTone, string> = { amber: "text-warning", red: "text-red-11" };
const TONE_BOX: Record<GoodSessionTone, string> = {
- amber: "border-amber-7/40 bg-amber-2/30 text-amber-11",
+ amber: "border-amber-7/40 bg-amber-2/30 text-warning",
red: "border-red-7/40 bg-red-2/30 text-red-11",
};
@@ -571,7 +571,7 @@ export function GoodSessionChecklistBar(props: GoodSessionChecklistBarProps) {
aria-hidden="true"
/>
<span className="truncate font-medium text-foreground">{checklistHeading(verdict)}</span>
- <span className={cn("shrink-0 tabular-nums", passedChecks < checklist.checks.length && "text-amber-11")} data-testid="good-session-count">
+ <span className={cn("shrink-0 tabular-nums", passedChecks < checklist.checks.length && "text-warning")} data-testid="good-session-count">
{passedChecks}/{checklist.checks.length}
</span>
<ChevronDown className={cn("size-3 shrink-0 transition-transform", checklistOpen && "rotate-180")} aria-hidden="true" />
@@ -622,7 +622,7 @@ export function FinishGuardDialog(props: { kind: FinishGuardKind | null; onFinis
<AlertDialog open={props.kind !== null} onOpenChange={(open) => { if (!open) props.onFinish(); }}>
<AlertDialogContent data-testid="finish-guard-dialog">
<AlertDialogHeader>
- <AlertDialogMedia className="bg-amber-3/50 text-amber-11">
+ <AlertDialogMedia className="bg-amber-3/50 text-warning">
<AlertTriangle />
</AlertDialogMedia>
<AlertDialogTitle>{FINISH_GUARD_TITLE}</AlertDialogTitle>
@@ -647,7 +647,7 @@ export function TurnGuardDialog(props: { open: boolean; onWait: () => void; onQu
<AlertDialog open={props.open} onOpenChange={(open) => { if (!open) props.onWait(); }}>
<AlertDialogContent data-testid="turn-guard-dialog">
<AlertDialogHeader>
- <AlertDialogMedia className="bg-amber-3/50 text-amber-11">
+ <AlertDialogMedia className="bg-amber-3/50 text-warning">
<AlertTriangle />
</AlertDialogMedia>
<AlertDialogTitle>{TURN_GUARD_TITLE}</AlertDialogTitle>
diff --git a/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx b/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx
index b8f55391..81cc0061 100644
--- a/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx
+++ b/apps/app/src/react-app/domains/session/chat/permission-approval-modal.tsx
@@ -274,7 +274,7 @@ export function PermissionApprovalModal(props: PermissionApprovalModalProps) {
const detailRows = permissionDetailRows(metadata);
const Icon = presentation.isDoomLoop ? RefreshCcw : ShieldCheck;
const iconClass = presentation.isDoomLoop
- ? "bg-amber-3/30 text-amber-11"
+ ? "bg-amber-3/30 text-warning"
: "bg-[rgba(var(--dls-accent-rgb),0.1)] text-[var(--omnirush-link,var(--dls-accent))]";
useEffect(() => {
@@ -341,7 +341,7 @@ export function PermissionApprovalModal(props: PermissionApprovalModalProps) {
{props.sourceTitle ? (
<div
data-permission-source="child-session"
- className="mt-2 text-[12px] font-medium text-amber-11"
+ className="mt-2 text-[12px] font-medium text-warning"
>
{t("session.permission_requested_by", { session: displayRuntimeBrand(props.sourceTitle) })}
</div>
@@ -524,7 +524,7 @@ export function PermissionApprovalPanel(props: PermissionApprovalModalProps) {
{props.sourceTitle ? (
<div
data-permission-source="child-session"
- className="mt-1 text-[12px] font-medium leading-5 text-amber-11"
+ className="mt-1 text-[12px] font-medium leading-5 text-warning"
>
{t("session.permission_requested_by", { session: displayRuntimeBrand(props.sourceTitle) })}
</div>
@@ -533,7 +533,7 @@ export function PermissionApprovalPanel(props: PermissionApprovalModalProps) {
<div className="mt-1 text-[12px] leading-5 text-dls-secondary">{presentation.note}</div>
) : null}
{confirmAlways ? (
- <div data-permission-confirm="always" role="status" className="mt-1 text-[12px] font-medium leading-5 text-amber-11">
+ <div data-permission-confirm="always" role="status" className="mt-1 text-[12px] font-medium leading-5 text-warning">
{t("session.permission_confirm_always")}
</div>
) : null}
diff --git a/apps/app/src/react-app/domains/session/commands/changes-panel.tsx b/apps/app/src/react-app/domains/session/commands/changes-panel.tsx
index c5bee4c0..8f72195a 100644
--- a/apps/app/src/react-app/domains/session/commands/changes-panel.tsx
+++ b/apps/app/src/react-app/domains/session/commands/changes-panel.tsx
@@ -84,7 +84,7 @@ function FileRow({ file, defaultOpen }: { file: ChangedFile; defaultOpen: boolea
"flex size-4 shrink-0 items-center justify-center rounded text-[10px] font-semibold",
file.status === "added" && "bg-green-4 text-green-11",
file.status === "deleted" && "bg-red-4 text-red-11",
- file.status === "modified" && "bg-amber-4 text-amber-11",
+ file.status === "modified" && "bg-amber-4 text-warning",
)}
title={file.status}
>
diff --git a/apps/app/src/react-app/domains/session/commands/review-fix-bar.tsx b/apps/app/src/react-app/domains/session/commands/review-fix-bar.tsx
index e3392df3..311831d4 100644
--- a/apps/app/src/react-app/domains/session/commands/review-fix-bar.tsx
+++ b/apps/app/src/react-app/domains/session/commands/review-fix-bar.tsx
@@ -9,7 +9,7 @@ import { REVIEW_SEVERITIES, severityLabel, type ReviewSeverity, type ReviewSumma
const CHIP: Record<ReviewSeverity, string> = {
critical: "border-red-6/50 bg-red-3/50 text-red-11",
high: "border-orange-6/50 bg-orange-3/50 text-orange-11",
- medium: "border-amber-6/50 bg-amber-3/50 text-amber-11",
+ medium: "border-amber-6/50 bg-amber-3/50 text-warning",
low: "border-gray-6/60 bg-gray-3/50 text-gray-11",
};
diff --git a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
index 5979644f..1dd4b3c2 100644
--- a/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
+++ b/apps/app/src/react-app/domains/session/commands/session-command-controls.tsx
@@ -205,7 +205,7 @@ function StatusRow({ row }: { row: Row }) {
<div className="flex items-start gap-3 px-4 py-2" data-status-row={row.label}>
<span className="w-24 shrink-0 text-[12px] text-muted-foreground">{row.label}</span>
<span className="min-w-0 flex-1">
- <span className={cn("block text-[12.5px] text-foreground", row.tone === "warning" && "font-medium text-amber-11")}>{row.value}</span>
+ <span className={cn("block text-[12.5px] text-foreground", row.tone === "warning" && "font-medium text-warning")}>{row.value}</span>
{row.detail ? <span className="block text-[11.5px] text-muted-foreground">{row.detail}</span> : null}
</span>
</div>
diff --git a/apps/app/src/react-app/domains/session/modals/queued-messages-panel.tsx b/apps/app/src/react-app/domains/session/modals/queued-messages-panel.tsx
index 3d93ebbc..91527ec5 100644
--- a/apps/app/src/react-app/domains/session/modals/queued-messages-panel.tsx
+++ b/apps/app/src/react-app/domains/session/modals/queued-messages-panel.tsx
@@ -65,7 +65,7 @@ function QueuedDraftContent(props: { draft: ComposerDraft }) {
nodes.push(
<span
key={key}
- className="mx-0.5 inline-flex items-center rounded-full border border-amber-6/35 bg-amber-3/15 px-2.5 py-1 text-xs font-medium text-amber-11 align-middle"
+ className="mx-0.5 inline-flex items-center rounded-full border border-amber-6/35 bg-amber-3/15 px-2.5 py-1 text-xs font-medium text-warning align-middle"
title={`Pasted text · ${pasteMatch[1]}`}
>
{`Pasted · ${lines} line${lines === 1 ? "" : "s"}`}
diff --git a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
index 5e5a5fb1..268d7103 100644
--- a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
+++ b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx
@@ -802,7 +802,7 @@ function RemoteConnectionIssueCard(props: {
<div
className={cn(
"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-red-3/60 text-red-11",
- isOffline && "bg-amber-3/60 text-amber-11",
+ isOffline && "bg-amber-3/60 text-warning",
)}
>
<AlertCircle size={14} />
@@ -817,7 +817,7 @@ function RemoteConnectionIssueCard(props: {
<div
className={cn(
"mt-2 rounded-lg border border-red-7/25 bg-red-1/40 px-2 py-1.5 text-[11px] leading-4 text-red-11 whitespace-pre-wrap wrap-anywhere",
- isOffline && "border-amber-7/25 bg-amber-1/40 text-amber-11",
+ isOffline && "border-amber-7/25 bg-amber-1/40 text-warning",
)}
title={props.message}
>
diff --git a/apps/app/src/react-app/domains/session/surface/composer/editor.tsx b/apps/app/src/react-app/domains/session/surface/composer/editor.tsx
index 2771fc5b..66e9cb58 100644
--- a/apps/app/src/react-app/domains/session/surface/composer/editor.tsx
+++ b/apps/app/src/react-app/domains/session/surface/composer/editor.tsx
@@ -336,7 +336,7 @@ function pastedTextChipLabel(lines: number) {
function createPastedTextChipDom(label: string, lines: number) {
const dom = document.createElement("span");
- dom.className = "inline-flex items-center gap-1 rounded-full border border-amber-6/35 bg-amber-3/15 px-2.5 py-1 text-xs font-medium text-amber-11";
+ dom.className = "inline-flex items-center gap-1 rounded-full border border-amber-6/35 bg-amber-3/15 px-2.5 py-1 text-xs font-medium text-warning";
dom.contentEditable = "false";
dom.setAttribute("spellcheck", "false");
dom.title = `Pasted text · ${label}`;
@@ -346,7 +346,7 @@ function createPastedTextChipDom(label: string, lines: number) {
const button = document.createElement("button");
button.type = "button";
- button.className = "ml-1 inline-flex items-center gap-0.5 rounded px-1 py-0.5 text-[11px] font-medium text-amber-11 underline decoration-amber-8 underline-offset-2 transition-colors hover:bg-amber-4 hover:text-amber-12";
+ button.className = "ml-1 inline-flex items-center gap-0.5 rounded px-1 py-0.5 text-[11px] font-medium text-warning underline decoration-amber-8 underline-offset-2 transition-colors hover:bg-amber-4 hover:text-amber-12";
button.title = "Expand";
button.setAttribute("aria-label", "Expand pasted text in composer");
button.dataset.pastedExpandLabel = label;
diff --git a/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx b/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx
index b7460878..ade72f83 100644
--- a/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx
+++ b/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx
@@ -92,7 +92,7 @@ function PermissionModeMenu(props: { client: ApprovalsClient; workspaceId: strin
// trigger. Auto reads as a warning (orange, alert shield): nothing asks.
className={`flex h-9 max-h-9 shrink-0 items-center gap-1.5 rounded-md px-2.5 text-sm transition-colors ${
mode === "full"
- ? "text-orange-11 hover:bg-orange-3"
+ ? "text-[color:var(--omnirush-warn,var(--orange-11))] hover:bg-orange-3"
: "text-gray-10 hover:bg-gray-3 hover:text-gray-12"
} ${locked ? "opacity-60" : ""}`}
>
@@ -117,7 +117,7 @@ function PermissionModeMenu(props: { client: ApprovalsClient; workspaceId: strin
data-testid={`permission-mode-${item}`}
aria-label={itemLabel.title}
onClick={() => void select(item)}
- className={`gap-3 py-2.5 ${item === "full" ? "text-orange-11" : ""}`}
+ className={`gap-3 py-2.5 ${item === "full" ? "text-[color:var(--omnirush-warn,var(--orange-11))]" : ""}`}
>
<ItemIcon className="size-5 shrink-0" />
<span className="min-w-0">
diff --git a/apps/app/src/react-app/domains/session/surface/session-surface.tsx b/apps/app/src/react-app/domains/session/surface/session-surface.tsx
index 7df94f76..52e83e06 100644
--- a/apps/app/src/react-app/domains/session/surface/session-surface.tsx
+++ b/apps/app/src/react-app/domains/session/surface/session-surface.tsx
@@ -840,7 +840,7 @@ function SessionRunStatus(props: SessionRunStatusProps) {
detail = t("session.run_status_acceptance_detail");
tone = "border-amber-7/50 bg-amber-2/30";
Icon = CircleAlert;
- iconClass = "text-amber-11";
+ iconClass = "text-warning";
} else if (props.preparing || props.sending) {
title = t("session.run_status_preparing");
detail = t("session.run_status_preparing_detail");
@@ -848,7 +848,7 @@ function SessionRunStatus(props: SessionRunStatusProps) {
title = t("session.run_status_waiting");
detail = t("session.run_status_waiting_detail");
Icon = Info;
- iconClass = "text-amber-11";
+ iconClass = "text-warning";
tone = "border-amber-7/50 bg-amber-2/30";
} else if (props.activityStatus === "compacting") {
title = t("session.run_status_compacting");
@@ -861,7 +861,7 @@ function SessionRunStatus(props: SessionRunStatusProps) {
detail = props.retryMessage;
tone = "border-amber-7/50 bg-amber-2/30";
Icon = CircleAlert;
- iconClass = "text-amber-11";
+ iconClass = "text-warning";
}
return (
@@ -972,7 +972,7 @@ function TodoPanel(props: { todos: TodoItem[] }) {
done
? "border-green-6 bg-green-2 text-green-11"
: active
- ? "border-amber-6 bg-amber-2 text-amber-11"
+ ? "border-amber-6 bg-amber-2 text-warning"
: cancelled
? "border-gray-6 bg-gray-2 text-gray-8"
: "border-gray-6 bg-gray-1 text-gray-8"
@@ -1098,7 +1098,7 @@ function SessionErrorCard({ error, developerMode, onDismiss, onChangeModel, onOp
function RevertedMessagesBanner(props: { hiddenCount: number; restoring: boolean; onRestore: () => void }) {
return (
<div
- className="mb-3 flex items-center gap-3 rounded-2xl border border-amber-7/40 bg-amber-2/30 px-4 py-3 text-sm text-amber-11"
+ className="mb-3 flex items-center gap-3 rounded-2xl border border-amber-7/40 bg-amber-2/30 px-4 py-3 text-sm text-warning"
data-testid="reverted-messages-banner"
role="status"
>
@@ -3467,11 +3467,11 @@ export function SessionSurface(props: SessionSurfaceProps) {
{(props.providerConnectedCount ?? 0) === 0 ? (
<button
type="button"
- className="mx-3 mb-2 flex w-[calc(100%-1.5rem)] items-center gap-2 rounded-lg border border-amber-7/40 bg-amber-2/30 px-3 py-2 text-left text-xs text-amber-11 transition-colors hover:bg-amber-3/40"
+ className="mx-3 mb-2 flex w-[calc(100%-1.5rem)] items-center gap-2 rounded-lg border border-amber-7/40 bg-amber-2/30 px-3 py-2 text-left text-xs text-warning transition-colors hover:bg-amber-3/40"
onClick={() => props.onOpenSettingsSection?.("providers")}
>
<span className="font-medium">No AI model connected.</span>
- <span className="text-amber-11/70">Add a provider to run tasks.</span>
+ <span className="text-warning/70">Add a provider to run tasks.</span>
</button>
) : null}
{props.cloudMcpSubmissionState.status === "failed" ? (
diff --git a/apps/app/src/react-app/domains/settings/cloud/sections.tsx b/apps/app/src/react-app/domains/settings/cloud/sections.tsx
index 493c5058..cc5d4f7f 100644
--- a/apps/app/src/react-app/domains/settings/cloud/sections.tsx
+++ b/apps/app/src/react-app/domains/settings/cloud/sections.tsx
@@ -68,7 +68,7 @@ const statusBadgeVariants = cva("", {
variants: {
tone: {
ready: "border-green-7/30 bg-green-3/20 text-green-11",
- warning: "border-amber-7/30 bg-amber-3/20 text-amber-11",
+ warning: "border-amber-7/30 bg-amber-3/20 text-warning",
error: "border-red-7/30 bg-red-3/20 text-red-11",
neutral: "border-gray-6/60 bg-gray-3/20 text-gray-11",
},
diff --git a/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx b/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
index 416123cc..da2d6ff8 100644
--- a/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
+++ b/apps/app/src/react-app/domains/settings/linux-sandbox-card.tsx
@@ -39,7 +39,7 @@ const TONE_CLASS: Record<LinuxSandboxView["tone"], string> = {
off: "text-dls-secondary",
busy: "text-dls-secondary",
ready: "text-green-11",
- attention: "text-amber-11",
+ attention: "text-warning",
error: "text-red-11",
};
diff --git a/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx b/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx
index bab35886..9177864d 100644
--- a/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/advanced-view-sections.tsx
@@ -69,7 +69,7 @@ function sourceBadgeClass(source: DenEndpointSource): string {
case "custom":
return "border-blue-7/40 bg-blue-3 text-blue-11";
case "bootstrap":
- return "border-amber-7/40 bg-amber-3 text-amber-11";
+ return "border-amber-7/40 bg-amber-3 text-warning";
case "default":
return "border-gray-7/50 bg-gray-3 text-gray-11";
}
@@ -85,7 +85,7 @@ function EndpointSourceBadge(props: { source: DenEndpointSource }) {
function EndpointWarningBadge(props: { children: ReactNode }) {
return (
- <Badge variant="outline" className="border-amber-7/40 bg-amber-3 text-amber-11">
+ <Badge variant="outline" className="border-amber-7/40 bg-amber-3 text-warning">
{props.children}
</Badge>
);
@@ -164,7 +164,7 @@ function ServerEndpointsCard(props: { cloudMcpUrl: string | null }) {
</div>
{hasBootstrapSource ? (
- <div className="text-[11px] text-amber-11">
+ <div className="text-[11px] text-warning">
{t("settings.server_endpoints_bootstrap_hint", { path: DESKTOP_BOOTSTRAP_PATH_HINT })}
</div>
) : null}
diff --git a/apps/app/src/react-app/domains/settings/pages/agent-context-diagnostics-report.tsx b/apps/app/src/react-app/domains/settings/pages/agent-context-diagnostics-report.tsx
index ec777d74..6bc5186c 100644
--- a/apps/app/src/react-app/domains/settings/pages/agent-context-diagnostics-report.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/agent-context-diagnostics-report.tsx
@@ -197,7 +197,7 @@ function StatusChip(props: {
className={cn(
"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold",
props.status === "passed" && "border-green-7/30 bg-green-2 text-green-11",
- props.status === "warning" && "border-amber-7/30 bg-amber-2 text-amber-11",
+ props.status === "warning" && "border-amber-7/30 bg-amber-2 text-warning",
props.status === "failed" && "border-red-7/30 bg-red-2 text-red-11",
props.status === "skipped" && "border-gray-7/30 bg-gray-2 text-gray-11",
)}
@@ -439,7 +439,7 @@ function McpInventory(props: {
"rounded-full px-2 py-1 text-xs font-medium",
state === "enabled" && engineConfigRow && "bg-green-3 text-green-11",
state === "enabled" && !engineConfigRow && "bg-blue-3 text-blue-11",
- state === "tool-policy" && "bg-amber-3 text-amber-11",
+ state === "tool-policy" && "bg-amber-3 text-warning",
state === "disabled" && "bg-gray-3 text-gray-11",
)}>
{state === "tool-policy"
@@ -720,7 +720,7 @@ export function AgentContextDiagnosticsReportView(props: {
</div>
</div>
- <div className="grid gap-2 rounded-xl border border-amber-7/20 bg-amber-2 p-3 text-xs text-amber-11 sm:grid-cols-2">
+ <div className="grid gap-2 rounded-xl border border-amber-7/20 bg-amber-2 p-3 text-xs text-warning sm:grid-cols-2">
<div>{t("connect.diagnostics_safety_workspace_runtime_read_only")}: {booleanLabel(props.report.safety.diagnosticsWorkspaceRuntimeConfigurationReadOnly)}</div>
<div>{t("connect.diagnostics_safety_tools_list")}: {booleanLabel(props.report.safety.cloudCatalogToolsListPerformed)}</div>
<div>{t("connect.diagnostics_safety_non_cloud_fetch")}: {booleanLabel(!props.report.safety.directNonCloudMcpFetchPerformed)}</div>
diff --git a/apps/app/src/react-app/domains/settings/pages/ai-view.tsx b/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
index 41d61f88..71b60fb5 100644
--- a/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/ai-view.tsx
@@ -60,7 +60,7 @@ function providerSourceBadgeClassName(input: { orgManaged: boolean; source?: Con
return "shrink-0 rounded-full border border-blue-6 bg-blue-2 px-2 py-0.5 text-[10px] font-medium text-blue-11";
}
if (input.source === "env") {
- return "shrink-0 rounded-full border border-amber-6 bg-amber-2 px-2 py-0.5 text-[10px] font-medium text-amber-11";
+ return "shrink-0 rounded-full border border-amber-6 bg-amber-2 px-2 py-0.5 text-[10px] font-medium text-warning";
}
return "shrink-0 rounded-full border border-dls-border bg-dls-sidebar/40 px-2 py-0.5 text-[10px] font-medium text-muted-foreground";
}
diff --git a/apps/app/src/react-app/domains/settings/pages/general-view.tsx b/apps/app/src/react-app/domains/settings/pages/general-view.tsx
index 88db38a0..007a9fdb 100644
--- a/apps/app/src/react-app/domains/settings/pages/general-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/general-view.tsx
@@ -212,7 +212,7 @@ export function ApprovalsCard(props: {
className={`rounded-md px-3 py-1 text-[12px] font-medium transition-colors disabled:cursor-not-allowed ${
selected
? mode === "full"
- ? "bg-dls-surface text-orange-11 shadow-sm"
+ ? "bg-dls-surface text-[color:var(--omnirush-warn,var(--orange-11))] shadow-sm"
: "bg-dls-surface text-dls-text shadow-sm"
: "text-dls-secondary hover:text-dls-text disabled:hover:text-dls-secondary"
} ${disabled && !selected ? "opacity-60" : ""}`}
diff --git a/apps/app/src/react-app/domains/settings/pages/mcp-supported-panel.tsx b/apps/app/src/react-app/domains/settings/pages/mcp-supported-panel.tsx
index 66905c7a..6c62f2a6 100644
--- a/apps/app/src/react-app/domains/settings/pages/mcp-supported-panel.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/mcp-supported-panel.tsx
@@ -164,7 +164,7 @@ export function McpSupportedPanel(props: {
</p>
) : state.kind === "blocked" ? (
<p className="mt-0.5 text-xs text-dls-secondary">
- <span className="font-medium text-amber-11">Blocked</span>{` · ${state.reason}${state.hint ? ` ${state.hint}` : ""}`}
+ <span className="font-medium text-warning">Blocked</span>{` · ${state.reason}${state.hint ? ` ${state.hint}` : ""}`}
</p>
) : state.kind === "off" ? (
<p className="mt-0.5 text-xs text-dls-secondary">Off</p>
diff --git a/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx b/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx
index 2a0531fe..0a73d754 100644
--- a/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/mcp-view.tsx
@@ -310,7 +310,7 @@ const statusBadgeStyle = (status: ReactMcpStatus) => {
case "needs_auth":
case "reconnect_required":
case "needs_client_registration":
- return "bg-amber-3 text-amber-11";
+ return "bg-amber-3 text-warning";
case "disabled":
case "disconnected":
return "bg-gray-3 text-gray-11";
@@ -342,7 +342,7 @@ const serviceColor = (name: string) => {
if (lower.includes("stripe")) return "text-blue-11";
if (lower.includes("context")) return "text-green-11";
if (lower.includes("devtools")) {
- return "text-amber-11";
+ return "text-warning";
}
if (lower.includes("omnirush")) return "text-gray-12";
return "text-dls-secondary";
@@ -1434,7 +1434,7 @@ export function McpView(props: McpViewProps) {
return (
<section className="w-full max-w-3xl animate-in fade-in duration-300">
{props.builtInExtensionsDisabled && props.allowManageExtensions ? (
- <div className="mb-5 rounded-xl border border-amber-6 bg-amber-2 px-4 py-3 text-xs text-amber-11">
+ <div className="mb-5 rounded-xl border border-amber-6 bg-amber-2 px-4 py-3 text-xs text-warning">
Built-in omnirush.ai extensions are disabled by your organization. Use Show hidden to review blocked built-ins.
</div>
) : null}
@@ -1861,7 +1861,7 @@ export function ExtensionStateTabs(props: {
state: "needs_signin",
label: t("extensions.state_needs_signin"),
count: props.needsSigninCount,
- countClassName: "bg-amber-3 text-amber-11",
+ countClassName: "bg-amber-3 text-warning",
},
{
state: "needs_admin_setup",
@@ -2309,7 +2309,7 @@ function McpConfiguredServersSection(props: {
{props.managedOAuthUnavailable ? (
<div
data-testid="mcp-managed-oauth-unavailable"
- className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-amber-11"
+ className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-warning"
>
{t("mcp.managed_oauth_unavailable")}
</div>
@@ -2420,7 +2420,7 @@ function McpConfiguredServerDetails(props: Parameters<typeof McpConfiguredServer
{props.entry.managedOAuth?.status === "reconnect_required" && props.entry.managedOAuth.lastError ? (
<div
data-testid="mcp-managed-reconnect-reason"
- className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-amber-11"
+ className="rounded-lg border border-amber-6 bg-amber-2 px-3 py-2 text-xs text-warning"
>
{props.entry.managedOAuth.lastError}
</div>
diff --git a/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx b/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
index d3bf8661..0137be63 100644
--- a/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/skill-files-panel.tsx
@@ -186,10 +186,10 @@ export function SkillFilesPanel(props: SkillFilesPanelProps) {
const isSkillMd = file.path === "SKILL.md";
return (
<div key={file.path} className="group flex items-center gap-2 border-b border-border px-4 py-1.5" data-testid="skill-file-row">
- {file.kind === "symlink" ? <Link2 size={12} className="text-amber-11" /> : file.executable ? <Terminal size={12} className="text-muted-foreground" /> : <FileText size={12} className="text-muted-foreground" />}
+ {file.kind === "symlink" ? <Link2 size={12} className="text-warning" /> : file.executable ? <Terminal size={12} className="text-muted-foreground" /> : <FileText size={12} className="text-muted-foreground" />}
<span className={`min-w-0 flex-1 truncate font-mono text-xs ${group.folder ? "pl-3" : ""}`} title={file.path}>
{file.path.slice(group.folder ? group.folder.length + 1 : 0)}
- {file.kind === "symlink" ? <span className="ml-2 text-[10px] text-amber-11">link (not uploaded by the desktop)</span> : null}
+ {file.kind === "symlink" ? <span className="ml-2 text-[10px] text-warning">link (not uploaded by the desktop)</span> : null}
</span>
<span className="text-[11px] tabular-nums text-muted-foreground">{formatUploadBytes(file.size)}</span>
{isSkillMd ? (
diff --git a/apps/app/src/react-app/domains/settings/pages/skill-upload-pane.tsx b/apps/app/src/react-app/domains/settings/pages/skill-upload-pane.tsx
index 9b53baad..2e356a64 100644
--- a/apps/app/src/react-app/domains/settings/pages/skill-upload-pane.tsx
+++ b/apps/app/src/react-app/domains/settings/pages/skill-upload-pane.tsx
@@ -269,7 +269,7 @@ export function SkillUploadPane(props: SkillUploadPaneProps) {
{conflict ? (
<div className="flex flex-col gap-2 rounded-xl border border-amber-7/40 bg-amber-3/30 px-4 py-3" data-testid="skill-upload-conflict">
<p className="flex items-center gap-1.5 text-sm font-medium text-dls-text">
- <AlertTriangle size={14} className="text-amber-11" />
+ <AlertTriangle size={14} className="text-warning" />
{conflict.replaceable
? `A skill named “${conflict.name}” already exists in this workspace.`
: `A skill named “${conflict.name}” is already installed ${conflict.scope === "global" ? "globally" : "in another skills folder"}.`}
diff --git a/apps/app/src/react-app/domains/settings/shell/panel.tsx b/apps/app/src/react-app/domains/settings/shell/panel.tsx
index 29c56c5e..b1ee2bd0 100644
--- a/apps/app/src/react-app/domains/settings/shell/panel.tsx
+++ b/apps/app/src/react-app/domains/settings/shell/panel.tsx
@@ -119,5 +119,5 @@ type SettingsPanelToolbarMessageProps = {
};
export function SettingsPanelToolbarMessage(props: SettingsPanelToolbarMessageProps) {
- return <div className="text-xs leading-relaxed text-amber-11/90 md:max-w-sm">{props.children}</div>;
+ return <div className="text-xs leading-relaxed text-warning/90 md:max-w-sm">{props.children}</div>;
}
diff --git a/apps/app/src/react-app/domains/settings/shell/settings-page.tsx b/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
index 67ee1f13..ed7fa8ab 100644
--- a/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
+++ b/apps/app/src/react-app/domains/settings/shell/settings-page.tsx
@@ -211,7 +211,7 @@ export function SettingsBetaBadge({ className }: { className?: string }) {
return (
<span
className={cn(
- "shrink-0 rounded-full border border-amber-6/40 bg-amber-3/60 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-amber-11",
+ "shrink-0 rounded-full border border-amber-6/40 bg-amber-3/60 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-warning",
className,
)}
>
diff --git a/apps/app/src/react-app/domains/settings/shell/tabs.tsx b/apps/app/src/react-app/domains/settings/shell/tabs.tsx
index 369cd921..ffb9b94a 100644
--- a/apps/app/src/react-app/domains/settings/shell/tabs.tsx
+++ b/apps/app/src/react-app/domains/settings/shell/tabs.tsx
@@ -67,7 +67,7 @@ export function TabsTrigger(props: TabsTriggerProps) {
<span className="flex min-w-0 items-center gap-2">
<span>{props.children}</span>
{props.beta ? (
- <span className="shrink-0 rounded-full border border-amber-6/40 bg-amber-3/60 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-amber-11">
+ <span className="shrink-0 rounded-full border border-amber-6/40 bg-amber-3/60 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-warning">
{t("common.beta")}
</span>
) : null}
diff --git a/apps/app/src/react-app/domains/voice/voice-button.tsx b/apps/app/src/react-app/domains/voice/voice-button.tsx
index 26a5e8e5..c6d061e6 100644
--- a/apps/app/src/react-app/domains/voice/voice-button.tsx
+++ b/apps/app/src/react-app/domains/voice/voice-button.tsx
@@ -103,7 +103,7 @@ export function VoicePermissionCard(props: { voice: VoiceDictation }) {
const url = props.voice.settingsUrl;
return (
<div
- className="mx-4 mt-3 flex items-center gap-3 rounded-xl border border-amber-7/40 bg-amber-2/40 px-3 py-2 text-xs text-amber-11"
+ className="mx-4 mt-3 flex items-center gap-3 rounded-xl border border-amber-7/40 bg-amber-2/40 px-3 py-2 text-xs text-warning"
data-testid="voice-permission-card"
role="alert"
>
diff --git a/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx b/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx
index 0daa4003..f28ea790 100644
--- a/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx
+++ b/apps/app/src/react-app/shell/cloud-workspace-overlay.tsx
@@ -402,7 +402,7 @@ export function CloudWorkspaceBootTakeover(props: { decision: CloudWorkspaceMain
className={cn(
"flex size-12 shrink-0 items-center justify-center rounded-2xl border",
attention
- ? "border-amber-7/35 bg-amber-3/60 text-amber-11"
+ ? "border-amber-7/35 bg-amber-3/60 text-warning"
: "border-dls-border bg-dls-hover text-[var(--omnirush-link,var(--dls-accent))]",
)}
>
diff --git a/apps/app/src/react-app/shell/notification-center.tsx b/apps/app/src/react-app/shell/notification-center.tsx
index 32aaf7a9..72320bd9 100644
--- a/apps/app/src/react-app/shell/notification-center.tsx
+++ b/apps/app/src/react-app/shell/notification-center.tsx
@@ -37,7 +37,7 @@ const SEVERITY_ICONS: Record<NotificationSeverity, LucideIcon> = {
const SEVERITY_CLASSES: Record<NotificationSeverity, string> = {
info: "text-sky-11",
success: "text-emerald-11",
- warning: "text-amber-11",
+ warning: "text-warning",
error: "text-red-11",
};
diff --git a/apps/app/tests/full-permissions-toggle.test.tsx b/apps/app/tests/full-permissions-toggle.test.tsx
index 04a7bd90..c81617e3 100644
--- a/apps/app/tests/full-permissions-toggle.test.tsx
+++ b/apps/app/tests/full-permissions-toggle.test.tsx
@@ -137,19 +137,19 @@ test("shows the current mode on load; Auto reads as a warning", async () => {
expect(normal.getAttribute("aria-label")).toBe("Permissions: Normal");
expect(normal.textContent).toContain("Normal");
expect(normal.dataset.lockReason).toBeUndefined();
- expect(normal.className).not.toContain("text-orange-11");
+ expect(normal.className).not.toContain("--omnirush-warn");
const full = fakeClient("http://full.test", { mode: "full", source: "settings", setting: "full" });
const active = await mount(<FullPermissionsToggle client={full.client} workspaceId="ws_1" />);
await waitFor(() => toggleIn(active).dataset.state === "full", "the auto mode to load");
expect(toggleIn(active).textContent).toContain("Auto");
- expect(toggleIn(active).className).toContain("text-orange-11");
+ expect(toggleIn(active).className).toContain("--omnirush-warn");
const careful = fakeClient("http://careful.test", { mode: "careful", source: "settings", setting: "careful" });
const asking = await mount(<FullPermissionsToggle client={careful.client} workspaceId="ws_1" />);
await waitFor(() => toggleIn(asking).dataset.state === "careful", "the careful mode to load");
expect(toggleIn(asking).textContent).toContain("Careful");
- expect(toggleIn(asking).className).not.toContain("text-orange-11");
+ expect(toggleIn(asking).className).not.toContain("--omnirush-warn");
// Nothing renders without a server client.
const none = await mount(<FullPermissionsToggle client={null} workspaceId="ws_1" />);
diff --git a/apps/app/tests/mcp-supported-panel.test.tsx b/apps/app/tests/mcp-supported-panel.test.tsx
index c076e9e0..e4768bd9 100644
--- a/apps/app/tests/mcp-supported-panel.test.tsx
+++ b/apps/app/tests/mcp-supported-panel.test.tsx
@@ -80,7 +80,7 @@ describe("Settings > MCP: supported servers", () => {
expect(html).toContain("From the project&#x27;s opencode.json");
expect(html).not.toContain("text-red-11");
// Blocked reads as a warning, not an error, and the remote hint is not said twice.
- expect(html).toContain('text-amber-11">Blocked');
+ expect(html).toContain('text-warning">Blocked');
expect(html).not.toContain(MCP_BLOCKED_HINTS.remote);
// The configured preset says Added instead of offering it again.
expect(html).toMatch(/data-testid="mcp-preset-filesystem".*Added/s);
diff --git a/apps/app/tests/theme-presets.test.ts b/apps/app/tests/theme-presets.test.ts
index 9e0dc04e..b726cd58 100644
--- a/apps/app/tests/theme-presets.test.ts
+++ b/apps/app/tests/theme-presets.test.ts
@@ -180,7 +180,7 @@ describe("CSS variables", () => {
expect(vars["--slate-1"]).toBe(v.background);
expect(vars["--omnirush-terminal-bg"]).toBe(v.terminal.bg);
expect(vars["--omnirush-syntax-keyword"]).toBe(v.code.keyword);
- expect(vars["--omnirush-highlight"]).toBe(v.highlight ?? v.accent);
+ if (mode === "dark") expect(vars["--omnirush-highlight"]).toBe(v.highlight ?? v.accent);
expect(worstRatio(vars["--omnirush-link"]!, textBackgrounds(v))).toBeGreaterThanOrEqual(4.5);
expect(vars["--radius"]).toBeUndefined();
for (const [name, value] of Object.entries(vars)) expect(isSafeVar(name, value)).toBe(true);
@@ -202,6 +202,41 @@ describe("CSS variables", () => {
}
});
+ test("gray steps used as text pass on background, surface and fills; step 5 is a fill", () => {
+ for (const preset of THEME_PRESETS) {
+ for (const mode of presetModes(preset)) {
+ const active = resolveActiveTheme({ kind: "preset", id: preset.id }, mode, null);
+ const vars = paletteVars({ ...active, legacy: false });
+ const v = preset.variants[mode]!;
+ const bgs = [v.background, v.surface, vars["--gray-3"]!];
+ const target = preset.target === "AAA" ? 7 : 4.5;
+ for (const step of [8, 9, 10]) {
+ expect(worstRatio(vars[`--gray-${step}`]!, bgs)).toBeGreaterThanOrEqual(target);
+ expect(vars[`--slate-${step}`]).toBe(vars[`--gray-${step}`]);
+ }
+ expect(worstRatio(vars["--gray-7"]!, bgs)).toBeGreaterThanOrEqual(3);
+ expect(vars["--gray-11"]).toBe(v.textMuted);
+ expect(vars["--gray-6"]).toBe(v.border);
+ expect(contrastRatio(v.text, vars["--gray-5"]!)).toBeGreaterThanOrEqual(4.5);
+ expect(contrastRatio(v.textMuted, vars["--gray-5"]!)).toBeGreaterThanOrEqual(4.5);
+ expect(vars["--gray-5"]).not.toBe(v.border);
+ }
+ }
+ });
+
+ test("highlight is at least 3:1 on light pages; warn and link hover are set", () => {
+ for (const preset of THEME_PRESETS.filter((p) => p.id !== "default")) {
+ for (const mode of presetModes(preset)) {
+ const active = resolveActiveTheme({ kind: "preset", id: preset.id }, mode, null);
+ const vars = paletteVars(active);
+ const v = preset.variants[mode]!;
+ if (mode === "light") expect(worstRatio(vars["--omnirush-highlight"]!, [v.background, v.surface])).toBeGreaterThanOrEqual(3);
+ expect(vars["--omnirush-warn"]).toBe(v.warn);
+ expect(worstRatio(vars["--omnirush-link-hover"]!, textBackgrounds(v))).toBeGreaterThanOrEqual(4.5);
+ }
+ }
+ });
+
test("custom radius and font size become variables", () => {
const custom = resolveActiveTheme({ kind: "custom" }, "light", {
v: 1,
@@ -267,9 +302,21 @@ describe("editor and terminal colours", () => {
const fjord = resolveActiveTheme({ kind: "preset", id: "fjord" }, "light", null);
const theme = xtermThemeFor(fjord);
expect(theme.background).toBe(fjord.variant.terminal.bg);
- for (const key of ANSI_KEYS) expect(theme[key]).toBe(fjord.variant.terminal[key]);
+ for (const key of ANSI_KEYS) if (key !== "white" && key !== "brightWhite") expect(theme[key]).toBe(fjord.variant.terminal[key]);
+ const fjordDark = resolveActiveTheme({ kind: "preset", id: "fjord" }, "dark", null);
+ for (const key of ANSI_KEYS) expect(xtermThemeFor(fjordDark)[key]).toBe(fjordDark.variant.terminal[key]);
expect(xtermThemeFor(resolveActiveTheme({ kind: "preset", id: "default" }, "light", null))).toBe(LEGACY_XTERM_THEME);
});
+
+ test("white and bright white stay visible on light terminals", () => {
+ for (const preset of THEME_PRESETS.filter((p) => p.id !== "default")) {
+ const active = resolveActiveTheme({ kind: "preset", id: preset.id }, "light", null);
+ if (active.mode !== "light") continue;
+ const theme = xtermThemeFor(active);
+ expect(contrastRatio(theme.white!, theme.background)).toBeGreaterThanOrEqual(3);
+ expect(contrastRatio(theme.brightWhite!, theme.background)).toBeGreaterThanOrEqual(3);
+ }
+ });
});
describe("theme state and persistence", () => {
@@ -333,6 +380,26 @@ describe("theme state and persistence", () => {
expect(props.size).toBe(0);
});
+ test("stored dark mode with no preset stays dark on Default (current and legacy key)", () => {
+ storage.setItem("omnirush.react.settings.theme-mode", "dark");
+ theme.bootstrapTheme();
+ expect(root.dataset.theme).toBe("dark");
+ expect(theme.getActiveTheme().legacy).toBe(true);
+ expect(root.dataset.omnirushPalette).toBeUndefined();
+ expect(props.get("--muted-foreground")).toBe("#858991");
+ expect(theme.readBootVars(storage.getItem(theme.THEME_BOOT_KEY), "dark")).toEqual({ mode: "dark", vars: { "--muted-foreground": "#858991" } });
+ storage.values.clear();
+ props.clear();
+ root.dataset = {};
+ theme.resetThemeStateForTests();
+ resetAppliedPaletteForTests();
+ storage.setItem("omnirush.themePref", "dark");
+ theme.bootstrapTheme();
+ expect(root.dataset.theme).toBe("dark");
+ expect(storage.getItem("omnirush.react.settings.theme-mode")).toBe("dark");
+ expect(theme.getThemeSelection()).toEqual({ kind: "preset", id: "default" });
+ });
+
test("system mode follows the OS for presets", () => {
prefersDark = true;
storage.setItem(theme.THEME_PRESET_KEY, "fjord");