Skip to content

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

chore(app): update assistant-ui tool group styling

Steven Enamakelba8d24d9db31
diff --git a/app/package.json b/app/package.json
index 9b42ec29af..2cf9dcfade 100644
--- a/app/package.json
+++ b/app/package.json
@@ -127,6 +127,7 @@
"tauri-plugin-ptt-api": "workspace:*",
"three": "^0.183.2",
"tw-animate-css": "^1.4.0",
+ "tw-shimmer": "^0.4.13",
"util": "^0.12.5",
"zustand": "^5.0.15"
},
diff --git a/app/src/components/assistant-ui/tool-group.tsx b/app/src/components/assistant-ui/tool-group.tsx
index 065b75bedc..05cd47964b 100644
--- a/app/src/components/assistant-ui/tool-group.tsx
+++ b/app/src/components/assistant-ui/tool-group.tsx
@@ -120,7 +120,7 @@ function ToolGroupTrigger({
<span
aria-hidden
data-slot="tool-group-trigger-shimmer"
- className="aui-tool-group-trigger-shimmer tool-shimmer pointer-events-none absolute inset-0 text-xs motion-reduce:animate-none">
+ className="aui-tool-group-trigger-shimmer shimmer pointer-events-none absolute inset-0 text-xs motion-reduce:animate-none">
{label}
</span>
)}
diff --git a/app/src/index.css b/app/src/index.css
index 6fed544f82..fb68eb3c04 100644
--- a/app/src/index.css
+++ b/app/src/index.css
@@ -15,6 +15,9 @@
/* Tailwind CSS imports */
@import 'tailwindcss';
@import 'tw-animate-css';
+/* assistant-ui's shimmer utility; the kit components (tool group, reasoning,
+ the elements under components/assistant-ui/elements) all use `shimmer`. */
+@import 'tw-shimmer';
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
@@ -907,29 +910,3 @@
--cmd-shadow-palette: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
}
-/* Text shimmer for an in-flight tool step or timeline header: the label
- renders dim with a highlight sweeping across it (the `shimmer` keyframes
- above). Motion-reduced users get the plain label. */
-.tool-shimmer {
- color: transparent;
- background-image: linear-gradient(
- 90deg,
- var(--color-muted-foreground) 0%,
- var(--color-muted-foreground) 35%,
- var(--color-foreground) 50%,
- var(--color-muted-foreground) 65%,
- var(--color-muted-foreground) 100%
- );
- background-size: 200% 100%;
- -webkit-background-clip: text;
- background-clip: text;
- animation: shimmer 2s linear infinite;
-}
-
-@media (prefers-reduced-motion: reduce) {
- .tool-shimmer {
- animation: none;
- color: inherit;
- background-image: none;
- }
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 430cd29882..cdb6e9f56a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -197,6 +197,9 @@ importers:
tw-animate-css:
specifier: ^1.4.0
version: 1.4.0
+ tw-shimmer:
+ specifier: ^0.4.13
+ version: 0.4.13([email protected])
util:
specifier: ^0.12.5
version: 0.12.5
@@ -6616,6 +6619,11 @@ packages:
resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}
+ resolution: {integrity: sha512-hEkTdCdOeDAr/Yx37U/W6BQjiXjLkGxugVIHsbCdSGDGHWzWMSyNNAqH+wVt0TinAtVsRsnwPYrIDbt2HSUAQg==}
+ peerDependencies:
+ tailwindcss: '>=4.0.0-0'
+
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
@@ -14328,6 +14336,10 @@ snapshots:
+ dependencies:
+ tailwindcss: 4.3.3
+
dependencies:
prelude-ls: 1.2.1