Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/assistant-ui/thread.tsx,app/src/index.css

Steven Enamakel622a77d85160
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index fa50a50608..f89d9118e4 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -388,13 +388,21 @@ const Composer: FC<{
// bottom edge and is pulled in at the top — the asymmetry is what
// says "lit from above".
//
- // 0 6px 12px -4px / 0.34 — contact: tight, near the edge
- // 0 22px 44px -16px / 0.48 — cast: far, wide, and the stronger
+ // 0 8px 12px -4px / 0.34 — contact: tight, near the edge
+ // 0 30px 44px -16px / 0.48 — cast: far, wide, and the stronger
//
// The far layer carrying more alpha than the near one is
// deliberate and is what gives depth; the usual instinct is the
// reverse, which flattens it back out.
//
+ // `animate-composer-shadow` then drifts those offsets sideways on a
+ // slow loop (`composerShadowDrift`, `index.css`), as though the
+ // light above the composer moves. The static `shadow-[…]` above is
+ // not redundant: it is what `motion-reduce:animate-none` falls back
+ // to, so the composer keeps its elevation when the OS asks for less
+ // motion and merely stops moving. Keyframes override the utility
+ // while the animation runs, which is why the two can coexist.
+ //
// Focus is now carried entirely by the border — 0.35 → 0.90 on the
// same token, so the edge sharpens rather than changing colour —
// and `transition` names border-color alone. Animating the shadow
@@ -406,7 +414,7 @@ const Composer: FC<{
//
// `border-ring` on drag is untouched — that state is meant to break
// the pattern.
- className="border-content-faint/35 focus-within:border-content-faint/90 data-[dragging=true]:border-ring shadow-[0_6px_12px_-4px_rgb(0_0_0/0.34),0_22px_44px_-16px_rgb(0_0_0/0.48)] flex w-full cursor-text flex-col gap-2 rounded-(--composer-radius) border bg-(--composer-bg) p-(--composer-padding) transition-[border-color] duration-200 ease-out motion-reduce:transition-none data-[dragging=true]:border-dashed data-[dragging=true]:bg-[color-mix(in_oklab,var(--color-accent)_50%,var(--color-background))]">
+ className="border-content-faint/35 focus-within:border-content-faint/90 data-[dragging=true]:border-ring shadow-[0_8px_12px_-4px_rgb(0_0_0/0.34),0_30px_44px_-16px_rgb(0_0_0/0.48)] animate-composer-shadow motion-reduce:animate-none flex w-full cursor-text flex-col gap-2 rounded-(--composer-radius) border bg-(--composer-bg) p-(--composer-padding) transition-[border-color] duration-200 ease-out motion-reduce:transition-none data-[dragging=true]:border-dashed data-[dragging=true]:bg-[color-mix(in_oklab,var(--color-accent)_50%,var(--color-background))]">
{HostComposerAttachments ? <HostComposerAttachments /> : <ComposerAttachments />}
{/*
* Lexical rather than the plain `ComposerPrimitive.Input` textarea,
diff --git a/app/src/index.css b/app/src/index.css
index 207f7f0eef..57913f6339 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -292,6 +292,9 @@
--animate-float: float 3s ease-in-out infinite;
--animate-ticker: ticker 30s linear infinite;
--animate-wiggle: wiggle 0.5s ease-in-out;
+ /* The composer's ambient shadow drift — see the `composerShadowDrift`
+ keyframes below for why it is slow and why the offsets stay small. */
+ --animate-composer-shadow: composerShadowDrift 18s ease-in-out infinite;
--backdrop-blur-xs: 2px;
--backdrop-blur-sm: 4px;
@@ -406,6 +409,37 @@
opacity: 0.5;
}
}
+ /* Drifts the composer's cast shadow horizontally, as though the light above
+ it moves. Deliberately slow (18s) and small (±8px on a 44px blur): the
+ point is that you never catch it moving, only notice the composer feels
+ lit rather than stamped on. Anything faster reads as a bug.
+
+ Only the x offsets change — y, blur and spread are identical in every
+ frame. Animating the blur would make the shadow pulse in and out of focus,
+ which no light source does; animating y would make the composer look like
+ it is bobbing.
+
+ The two layers drift by different amounts (4px near, 8px far) and in the
+ same direction. That is parallax: the further a shadow is cast, the more a
+ given change in light angle moves it. Equal drift would read as the whole
+ shadow sliding sideways as one flat sheet.
+
+ Paired with `motion-reduce:animate-none` at the call site, which falls back
+ to the static `shadow-[…]` utility beside it — so the composer keeps its
+ elevation when motion is off, it just stops moving. */
+ @keyframes composerShadowDrift {
+ 0%,
+ 100% {
+ box-shadow:
+ -4px 8px 12px -4px rgb(0 0 0 / 0.34),
+ -8px 30px 44px -16px rgb(0 0 0 / 0.48);
+ }
+ 50% {
+ box-shadow:
+ 4px 8px 12px -4px rgb(0 0 0 / 0.34),
+ 8px 30px 44px -16px rgb(0 0 0 / 0.48);
+ }
+ }
@keyframes float {
0%,
100% {