Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(assistant): Minor UI issues (#16319)

Ben Bachem8290b356df2a
diff --git a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
index 03eab6b123..24ae3a86cc 100644
--- a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
@@ -304,7 +304,7 @@ function TextMessageWithActions({
<>
<button
type="button"
- className="text-muted-foreground hover:text-foreground focus-visible:ring-ring rounded-md p-1 outline-none focus-visible:ring-2"
+ className="text-muted-foreground/50 hover:text-muted-foreground focus-visible:ring-ring rounded-md p-1 outline-none focus-visible:ring-2"
aria-label={isCopied ? "Message copied" : "Copy message"}
title={isCopied ? "Copied" : "Copy message"}
onClick={handleCopy}
diff --git a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
index 3d25736038..fb0b4b66d2 100644
--- a/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
@@ -1518,12 +1518,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
</div>
)}
{isAssistantTurnInProgress && pendingToolCalls.length === 0 ? (
- <div
- className={cn(
- "pointer-events-none relative h-px w-full shrink-0 select-none",
- isExpanded && "mx-auto max-w-3xl",
- )}
- >
+ <div className="pointer-events-none relative mx-auto h-px w-[calc(100%-1.5rem)] max-w-[calc(48rem-0.75rem)] shrink-0 select-none">
<div className="absolute top-0 h-4 w-full -translate-y-full overflow-hidden">
<div className="absolute top-0 h-12 w-full bg-radial from-(--color-3) to-transparent to-60% bg-center opacity-25" />
</div>
@@ -1532,18 +1527,18 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
aria-hidden="true"
className={cn("h-[4rem]", styles.loadingGradient)}
/>
- {isExpanded && (
- <>
- {/* Gradient overlays for expanded state so that the edges fade out */}
- {/* Match the assistant surface (bg-background) so edges fade cleanly */}
- <div className="from-background absolute top-0 right-0 h-full w-1/2 bg-linear-to-l to-transparent" />
- <div className="from-background absolute top-0 left-0 h-full w-1/2 bg-linear-to-r to-transparent" />
- </>
- )}
+ {/* Match the assistant surface so the loading animation fades at both edges. */}
+ <div className="from-background absolute top-0 right-0 h-full w-1/2 bg-linear-to-l to-transparent" />
+ <div className="from-background absolute top-0 left-0 h-full w-1/2 bg-linear-to-r to-transparent" />
</div>
</div>
) : null}
- <div className={cn("p-1.5", isExpanded && "pt-0")}>
+ <div
+ className={cn(
+ "p-1.5",
+ (isExpanded || isAssistantTurnInProgress) && "pt-0",
+ )}
+ >
{/* The composer separates from the transcript by elevation, not by a
rule: one hairline edge, a lifted surface, and a footer band a
step off the input. `overflow-hidden` keeps that band inside the
@@ -1609,7 +1604,7 @@ export function InAppAgentWindow(props: InAppAgentWindowProps) {
executionStop?.onStop();
}}
>
- <Square className="size-3" />
+ <Square className="text-muted-foreground size-3 fill-current" />
</Button>
) : (
<Button