Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: Collapse thinking's chevron points up (#13669)

Michael Hancf869dac10ae
diff --git a/studio/frontend/src/components/assistant-ui/reasoning.tsx b/studio/frontend/src/components/assistant-ui/reasoning.tsx
index 59ea39ea6c7..3fc4b60c71c 100644
--- a/studio/frontend/src/components/assistant-ui/reasoning.tsx
+++ b/studio/frontend/src/components/assistant-ui/reasoning.tsx
@@ -600,7 +600,8 @@ function ReasoningTail({
aria-hidden={true}
className={cn(
"size-3.5 shrink-0 transition-transform duration-200 ease-out",
- !expanded && "-rotate-90",
+ // Below the trace, so Collapse points up at what it folds away; -180, not 180, turns a quarter.
+ expanded ? "-rotate-180" : "-rotate-90",
)}
/>
</button>
diff --git a/studio/frontend/tests/reasoning-live-tail.test.ts b/studio/frontend/tests/reasoning-live-tail.test.ts
index 71940064b96..940f1b32625 100644
--- a/studio/frontend/tests/reasoning-live-tail.test.ts
+++ b/studio/frontend/tests/reasoning-live-tail.test.ts
@@ -100,14 +100,14 @@ test("a closing block keeps the cap it had while open", () => {
assert.ok(open !== -1 && open < reasoning.indexOf("const cappedNow ="));
});
-test("Expand thinking ends in the header's chevron: right while bounded, down once expanded", () => {
+test("Expand thinking ends in a chevron: right while bounded, up once expanded", () => {
const tail = reasoning.slice(
reasoning.indexOf("function ReasoningTail("),
reasoning.indexOf("// With the fold preference on"),
);
assert.match(
tail,
- /\{expanded \? "Collapse thinking" : "Expand thinking"\}\s*<ChevronDownIcon[\s\S]*?!expanded && "-rotate-90"/,
+ /\{expanded \? "Collapse thinking" : "Expand thinking"\}\s*<ChevronDownIcon[\s\S]*?expanded \? "-rotate-180" : "-rotate-90"/,
);
});