From 563520b51d8342eafde401218ca6c3273804315f Mon Sep 17 00:00:00 2001 From: idevlab Date: Wed, 16 Sep 2026 16:45:46 +0800 Subject: [PATCH 1/4] refactor(desktop): quiet the app shell chrome --- apps/desktop/src/App.tsx | 13 +-- apps/desktop/src/projects/ProjectIcon.tsx | 2 +- apps/desktop/src/session/Composer.tsx | 33 +++--- .../src/session/SessionHeaderActions.tsx | 2 +- apps/desktop/src/sidebar/SessionRail.tsx | 8 +- apps/desktop/src/styles.css | 9 -- .../sessionHeaderActionsRendered.test.tsx | 3 +- .../tests/sessionRailRendered.test.tsx | 43 ++++++-- .../desktop/tests/shellChromeContract.test.ts | 100 ++++++++++++++++++ .../tests/windowChromeContract.test.ts | 4 +- .../2026-09-16-quiet-shell-chrome/intent.md | 59 +++++++++++ .../2026-09-16-quiet-shell-chrome/plan.md | 59 +++++++++++ .../2026-09-16-quiet-shell-chrome/spec.md | 65 ++++++++++++ .../verification.md | 63 +++++++++++ 14 files changed, 408 insertions(+), 55 deletions(-) create mode 100644 apps/desktop/tests/shellChromeContract.test.ts create mode 100644 docs/sdlc/changes/2026-09-16-quiet-shell-chrome/intent.md create mode 100644 docs/sdlc/changes/2026-09-16-quiet-shell-chrome/plan.md create mode 100644 docs/sdlc/changes/2026-09-16-quiet-shell-chrome/spec.md create mode 100644 docs/sdlc/changes/2026-09-16-quiet-shell-chrome/verification.md diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index fb7cf25d..400e313e 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -312,7 +312,6 @@ import { planPluginManagerChange, } from "./plugins/lifecycle"; import { usePluginSnapshot } from "./plugins/usePluginSnapshot"; -import { ProjectIcon } from "./projects/ProjectIcon"; import { loadProviderRegistry } from "./providers/registry"; import { RemoteModal } from "./remote/Remote"; import { Composer } from "./session/Composer"; @@ -8420,16 +8419,6 @@ export default function App() { > {railExpandAction} {/* Breadcrumb, reference-style: project / thread. */} - - {activeProjectRecord ? ( - - ) : ( - - )} - {activeProjectName != null && activeProjectName !== "" && ( <> @@ -8475,7 +8464,7 @@ export default function App() {
-
+
{/* Full-page mode hides the transcript, so the header carries the only sign that a turn is in flight — and the way back to the answer without leaving the mode for good. */} {docMode && hasConversationContent && ( diff --git a/apps/desktop/src/projects/ProjectIcon.tsx b/apps/desktop/src/projects/ProjectIcon.tsx index de5523fa..3b41e0eb 100644 --- a/apps/desktop/src/projects/ProjectIcon.tsx +++ b/apps/desktop/src/projects/ProjectIcon.tsx @@ -61,7 +61,7 @@ export function ProjectIcon({ data-project-icon aria-hidden="true" className={cn( - "rounded-control bg-foreground/[0.055] text-muted-foreground ring-foreground/10 flex shrink-0 items-center justify-center overflow-hidden ring-1", + "rounded-control text-muted-foreground flex shrink-0 items-center justify-center overflow-hidden", className )} style={{ width: size, height: size }} diff --git a/apps/desktop/src/session/Composer.tsx b/apps/desktop/src/session/Composer.tsx index 55f2ac25..9b1f2065 100644 --- a/apps/desktop/src/session/Composer.tsx +++ b/apps/desktop/src/session/Composer.tsx @@ -253,7 +253,7 @@ export function CheckoutBar({ aria-expanded={open} >
diff --git a/apps/desktop/src/session/SessionHeaderActions.tsx b/apps/desktop/src/session/SessionHeaderActions.tsx index 83639f30..8cf4ce99 100644 --- a/apps/desktop/src/session/SessionHeaderActions.tsx +++ b/apps/desktop/src/session/SessionHeaderActions.tsx @@ -120,7 +120,7 @@ export function SessionHeaderActions({ ); return (
diff --git a/apps/desktop/src/sidebar/SessionRail.tsx b/apps/desktop/src/sidebar/SessionRail.tsx index ef9f1d91..53f80feb 100644 --- a/apps/desktop/src/sidebar/SessionRail.tsx +++ b/apps/desktop/src/sidebar/SessionRail.tsx @@ -1019,7 +1019,7 @@ export function SessionRail({ aria-label={t( isWorktree ? "rail.gitWorktreeHint" : "rail.gitCheckoutHint" )} - className="rounded-micro bg-fill-quiet text-fine text-foreground/55 flex shrink-0 items-center gap-0.5 px-1 leading-4" + className="text-fine text-foreground/55 flex shrink-0 items-center gap-0.5 leading-4" >