Skip to content

The agent that grows with you

fix(desktop): the scrolled-up composer comes back on hover or focus anywhere in the dock

Brooklyn Nicholson436a6e130eaf
diff --git a/apps/desktop/src/app/chat/composer/index.tsx b/apps/desktop/src/app/chat/composer/index.tsx
index 8d213fc9008..35a59d4cfb2 100644
--- a/apps/desktop/src/app/chat/composer/index.tsx
+++ b/apps/desktop/src/app/chat/composer/index.tsx
@@ -1275,7 +1275,7 @@ export function ChatBar({
them out here is what makes that impossible rather than excluded. */}
<div
className={cn(
- 'z-30 flex flex-col',
+ 'group/composer-dock z-30 flex flex-col',
poppedOut ? 'fixed max-w-[calc(100vw-1.5rem)]' : 'absolute bottom-0 left-1/2 max-w-full -translate-x-1/2'
)}
data-popped-out={poppedOut ? '' : undefined}
@@ -1482,7 +1482,7 @@ export function ChatBar({
className={cn(
'relative z-1 flex min-h-0 w-full flex-col gap-(--composer-row-gap) overflow-hidden rounded-[inherit] px-(--composer-surface-pad-x) py-(--composer-surface-pad-y) transition-opacity duration-200 ease-out',
scrolledUp
- ? 'opacity-30 group-hover/composer:opacity-100 group-focus-within/composer-surface:opacity-100'
+ ? 'opacity-30 group-hover/composer-dock:opacity-100 group-focus-within/composer-dock:opacity-100'
: 'opacity-100'
)}
data-slot="composer-fade"
diff --git a/apps/desktop/src/app/chat/composer/status-stack/index.tsx b/apps/desktop/src/app/chat/composer/status-stack/index.tsx
index eea94c3b05e..754b1c9ec5e 100644
--- a/apps/desktop/src/app/chat/composer/status-stack/index.tsx
+++ b/apps/desktop/src/app/chat/composer/status-stack/index.tsx
@@ -391,7 +391,9 @@ export function ComposerStatusStack({ onSubmit, queue, sessionId }: ComposerStat
<div
className={cn(
'transition-opacity duration-200 ease-out',
- scrolledUp ? 'opacity-30 group-hover/composer:opacity-100' : 'opacity-100'
+ scrolledUp
+ ? 'opacity-30 group-hover/composer-dock:opacity-100 group-focus-within/composer-dock:opacity-100'
+ : 'opacity-100'
)}
data-slot="status-stack-content"
>
diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css
index 828c236c1a4..33b50a08214 100644
--- a/apps/desktop/src/styles.css
+++ b/apps/desktop/src/styles.css
@@ -2060,6 +2060,10 @@ body.guest-pointer-lock :is(webview, iframe) {
--composer-fill: color-mix(in srgb, var(--dt-card) 80%, transparent);
}
+[data-slot='composer-dock']:is(:hover, :focus-within) [data-slot='composer-root'][data-thread-scrolled-up] {
+ --composer-fill: color-mix(in srgb, var(--dt-card) 88%, transparent);
+}
+
/* Tool/thinking blocks now live at message-text alignment (no leading
chevron column to escape into), so their headers and bodies share a
common left edge with the model's text. */