From 525bc6f18fe6cb750319489deee7583f39286839 Mon Sep 17 00:00:00 2001 From: Jiayuan Date: Thu, 15 Jan 2026 01:17:25 +0800 Subject: [PATCH 1/3] fix(ui): remove auto-popup of new session dialog on app launch Remove the useEffect that automatically opened the new session modal when no sessions existed, allowing users to see the main interface first and create sessions manually when ready. Co-Authored-By: Claude Opus 4.5 --- src/renderer/src/App.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 01b9a7a602..4db28bbaa5 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -1,7 +1,7 @@ /** * Main App component */ -import { useEffect, useState } from 'react' +import { useState } from 'react' import { useApp } from './hooks/useApp' import { ChatView, MessageInput, StatusBar } from './components' import { AppSidebar } from './components/AppSidebar' @@ -44,13 +44,6 @@ function AppContent(): React.JSX.Element { // Default agent for new sessions const [defaultAgentId, setDefaultAgentId] = useState('opencode') - // Auto-show new session dialog when no sessions exist - useEffect(() => { - if (!currentSession && sessions.length === 0) { - openModal('newSession') - } - }, [currentSession, sessions.length, openModal]) - const handleNewSession = () => { openModal('newSession') } From b9d6ff86cfc8f20cc26946e078d3ede68c337c40 Mon Sep 17 00:00:00 2001 From: Jiayuan Date: Thu, 15 Jan 2026 01:31:36 +0800 Subject: [PATCH 2/3] feat(ui): use Geist Sans font Add @fontsource/geist-sans package and set it as the primary font with system-ui and sans-serif as fallbacks. Co-Authored-By: Claude Opus 4.5 --- package.json | 1 + pnpm-lock.yaml | 8 ++++++++ src/renderer/src/main.tsx | 1 + src/renderer/src/styles/index.css | 9 +-------- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 73182f9cf1..b55e0c4fcf 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@agentclientprotocol/sdk": "^0.13.0", "@electron-toolkit/preload": "^3.0.2", "@electron-toolkit/utils": "^4.0.0", + "@fontsource/geist-sans": "^5.2.5", "@radix-ui/react-collapsible": "^1.1.12", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-separator": "^1.1.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 899eb69b23..7cf8ac9e80 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@electron-toolkit/utils': specifier: ^4.0.0 version: 4.0.0(electron@39.2.7) + '@fontsource/geist-sans': + specifier: ^5.2.5 + version: 5.2.5 '@radix-ui/react-collapsible': specifier: ^1.1.12 version: 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.8))(@types/react@19.2.8)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -670,6 +673,9 @@ packages: '@floating-ui/utils@0.2.10': resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + '@fontsource/geist-sans@5.2.5': + resolution: {integrity: sha512-anllOHyJbElRs9fV15TeDRqAeb1IKm4bSknPl6ZMoyPTx1BBy7logudcUwpNjmQLkzn4Q0JGQLRCUKJYoyST6A==} + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -4285,6 +4291,8 @@ snapshots: '@floating-ui/utils@0.2.10': {} + '@fontsource/geist-sans@5.2.5': {} + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': diff --git a/src/renderer/src/main.tsx b/src/renderer/src/main.tsx index 1e5e211641..99404c9c24 100644 --- a/src/renderer/src/main.tsx +++ b/src/renderer/src/main.tsx @@ -1,3 +1,4 @@ +import '@fontsource/geist-sans' import './styles/index.css' import { StrictMode } from 'react' diff --git a/src/renderer/src/styles/index.css b/src/renderer/src/styles/index.css index 175547256c..7a105a6648 100644 --- a/src/renderer/src/styles/index.css +++ b/src/renderer/src/styles/index.css @@ -10,14 +10,7 @@ body { -webkit-font-smoothing: antialiased; - font-family: - -apple-system, - BlinkMacSystemFont, - 'Segoe UI', - Roboto, - 'Helvetica Neue', - Arial, - sans-serif; + font-family: 'Geist Sans', system-ui, sans-serif; } /* Draggable title bar region for macOS */ From e9d05db20794d8225ce443c91d4f0fba742a3a3e Mon Sep 17 00:00:00 2001 From: Jiayuan Date: Thu, 15 Jan 2026 01:43:47 +0800 Subject: [PATCH 3/3] fix(ui): update sidebar colors Set sidebar background to #f2f2f2 and hover color to #ddddde. Co-Authored-By: Claude Opus 4.5 --- src/renderer/src/styles/index.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/styles/index.css b/src/renderer/src/styles/index.css index 7a105a6648..35f4b2f68b 100644 --- a/src/renderer/src/styles/index.css +++ b/src/renderer/src/styles/index.css @@ -107,11 +107,11 @@ body { --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); --chart-5: oklch(0.769 0.188 70.08); - --sidebar: oklch(0.985 0 0); + --sidebar: #f2f2f2; --sidebar-foreground: oklch(0.141 0.005 285.823); --sidebar-primary: oklch(0.21 0.006 285.885); --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.967 0.001 286.375); + --sidebar-accent: #ddddde; --sidebar-accent-foreground: oklch(0.21 0.006 285.885); --sidebar-border: oklch(0.92 0.004 286.32); --sidebar-ring: oklch(0.705 0.015 286.067);