The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): surfaces declare their glass role
Brooklyn Nicholson0ae0641ce74c
diff --git a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsxindex 4ef812a2d7e..e7c23a78ec3 100644--- a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx@@ -125,6 +125,7 @@ export function ProjectOverviewRow({</>}className={cn(dragging && 'cursor-grabbing bg-(--ui-sidebar-surface-background)')}+ data-glass-opaque={dragging ? '' : undefined}label={<SidebarRowLinkaria-label={s.projects.enter(project.label)}diff --git a/apps/desktop/src/app/chat/sidebar/session-row.tsx b/apps/desktop/src/app/chat/sidebar/session-row.tsxindex 07d13c686b9..71e3cee7667 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.tsx@@ -354,10 +354,12 @@ function SidebarSessionRowImpl({isSelected && 'bg-(--ui-row-active-background)',liveTurn && 'text-foreground',// Opaque surface while lifted so the dragged row erases what's under- // it (translucency let the rows below bleed through).+ // it (translucency let the rows below bleed through). data-glass-opaque+ // keeps that true when window glass thins the field.dragging && 'z-10 cursor-grabbing bg-(--ui-sidebar-surface-background)',className)}+ data-glass-opaque={dragging ? '' : undefined}data-working={liveTurn ? 'true' : undefined}// The row runs BOTH drags off one press, and each declines outside its// own region — so no timing/arbitration rule is needed and neither candiff --git a/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx b/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsxindex a1cced90885..b29715f98b9 100644--- a/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx@@ -781,6 +781,9 @@ export const UserEditComposer: FC<UserEditComposerProps> = ({ cwd, gateway, sess<StickyHumanMessageContainer><divclassName="composer-human-message-container human-execution-message-top relative flex w-full items-start rounded-md bg-(--ui-chat-surface-background)"+ // A raised box over the transcript field: under window glass it keeps+ // a near-opaque fill instead of thinning with the field behind it.+ data-glass-raised=""onBlur={handleEditBlur}onDragEnter={handleDragEnter}onDragLeave={handleDragLeave}diff --git a/apps/desktop/src/components/chat/diff-lines.tsx b/apps/desktop/src/components/chat/diff-lines.tsxindex ac3e231ed66..162e95c3f98 100644--- a/apps/desktop/src/components/chat/diff-lines.tsx+++ b/apps/desktop/src/components/chat/diff-lines.tsx@@ -645,7 +645,13 @@ export function FileDiffPanel({>{showLineNumbers ? (<div className="grid min-w-max grid-cols-[auto_minmax(0,1fr)]">- <div className="sticky left-0 z-1 select-none bg-(--ui-editor-surface-background) py-3 text-muted-foreground/55">+ <div+ className="sticky left-0 z-1 select-none bg-(--ui-editor-surface-background) py-3 text-muted-foreground/55"+ // Masks the code scrolling horizontally beneath it, so it has to+ // stay opaque when window glass thins the field. See+ // `[data-glass-opaque]` in styles.css.+ data-glass-opaque=""+ >{beforeRows > 0 && <div aria-hidden style={{ height: beforeRows * PREVIEW_LINE_PX }} />}{visibleLineChunks.map(chunk => (<div className="block" key={chunk.start}>diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.cssindex 1f2edb46246..c87d0327ab0 100644--- a/apps/desktop/src/styles.css+++ b/apps/desktop/src/styles.css@@ -31,16 +31,8 @@/* Continuous decorative animations otherwise keep Chromium's renderer awakebehind another app. main.tsx owns this attribute only for the primarywindow; wake/pet overlays retain their purpose-built visibility behavior. */-:root[data-renderer-animations-paused] :is(- .shimmer,- .quest-glow,- .pet-egg,- .pet-egg__glow,- .pet-egg-shadow,- .pet-wobble,- .progress-slide,- .kanban-arc- ),+:root[data-renderer-animations-paused]+ :is(.shimmer, .quest-glow, .pet-egg, .pet-egg__glow, .pet-egg-shadow, .pet-wobble, .progress-slide, .kanban-arc),:root[data-renderer-animations-paused] .arc-border::before,:root[data-renderer-animations-paused][data-slot='aui_assistant-message-content']@@ -606,32 +598,22 @@}/* Surfaces that MASK sibling content must stay filled under glass — a- see-through mask reads as text bleeding through text, not as glass. The- diff panel's sticky line-number gutter wears the editor surface- (components/chat/diff-lines.tsx), and a dragged sidebar row wears the- sidebar surface precisely so the rows it passes over don't show through- (see the comment in sidebar/session-row.tsx). Both get an opaque fill- back. */- :root[data-hermes-glass] [data-slot='file-diff-panel'] {+ see-through mask reads as text bleeding through text, not as glass.+ Anything that paints over its own siblings declares `data-glass-opaque`+ at its call site (the diff gutter, a dragged sidebar row), rather than+ styles.css reaching in by class name. */+ :root[data-hermes-glass] [data-glass-opaque] {+ --ui-chat-surface-background: var(--ui-bg-chrome);--ui-editor-surface-background: var(--ui-bg-chrome);- }-- :root[data-hermes-glass] .cursor-grabbing {--ui-sidebar-surface-background: var(--ui-bg-sidebar);}- /* The inline user-message edit box wears the chat surface as a raised box- fill; give it the opaque chrome the token resolves to outside glass. */- :root[data-hermes-glass] .composer-human-message-container {- --ui-chat-surface-background: var(--ui-bg-chrome);- }-- /* Overlay cards (settings, agents, cron, command center — everything on- OverlayView) sit ABOVE the field, so they run counter to it: near-opaque- over a glass field, never thinner than the field itself (max() covers- low slider values where the field keeps more than 94%). The card wears- the chat token and its internal nav asides wear the sidebar token, so- both come back as almost-solid fills and the two-tone layout survives. */+ /* Content RAISED above the field (overlay cards, the inline edit box) runs+ counter to it: near-opaque over a glass field, never thinner than the+ field itself — max() covers low slider values where the field still keeps+ more than 94%. The card wears the chat token and its internal nav asides+ wear the sidebar token, so both come back as almost-solid fills and the+ two-tone layout survives. */:root[data-hermes-glass] [data-glass-raised] {--ui-chat-surface-background: color-mix(in srgb,@@ -2511,8 +2493,7 @@ button[data-slot='aui_msg-reactions'] svg {No fill of its own — the sheet is its own layer ([data-hud-glass]) so itcan animate independently of the text. */- inset: auto var(--hud-band-inset) var(--hud-bar-height, var(--composer-fallback-height))- var(--hud-band-inset) !important;+ inset: auto var(--hud-band-inset) var(--hud-bar-height, var(--composer-fallback-height)) var(--hud-band-inset) !important;height: var(--hud-band-height, 0px) !important;width: auto !important;max-width: none !important;@@ -2669,8 +2650,7 @@ button[data-slot='aui_msg-reactions'] svg {goes fully opaque and the band falls back behind it: dimmer, fractionallysmaller, slightly out of focus. Scaled from the bar's edge, so it reads asdepth rather than as the panel shrinking. */-[data-hud-shell]:has([data-slot='composer-completion-drawer'])- :is([data-slot='composer-bounds'], [data-hud-glass]) {+[data-hud-shell]:has([data-slot='composer-completion-drawer']) :is([data-slot='composer-bounds'], [data-hud-glass]) {opacity: 0.25 !important;scale: 0.97;filter: blur(1.5px);