Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#90536)

hermes-seaeye[bot]e1d54926a198
diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx
index 56a83fff94c..da4d4f3742b 100644
--- a/apps/desktop/src/app/command-palette/index.tsx
+++ b/apps/desktop/src/app/command-palette/index.tsx
@@ -564,6 +564,7 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) {
// highlighted brightness. `system` has to be resolved here — previewTheme
// paints a concrete light/dark.
const systemDark = useMediaQuery('(prefers-color-scheme: dark)')
+
const resolveThemeMode = useCallback(
(target: ThemeMode): 'light' | 'dark' => (target === 'system' ? (systemDark ? 'dark' : 'light') : target),
[systemDark]