From 4b496066bf7518323c07089409889eeae665b194 Mon Sep 17 00:00:00 2001 From: OpeOginni <107570612+OpeOginni@users.noreply.github.com> Date: Thu, 21 May 2026 23:02:08 +0200 Subject: [PATCH] fix(opencode): update spinner color logic (#28032) Co-authored-by: Aiden Cline --- packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx index f4b11fa465..e870355684 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -1438,7 +1438,10 @@ export function Prompt(props: PromptProps) { }) const spinnerDef = createMemo(() => { - const agent = local.agent.current() + const agent = + status().type !== "idle" + ? (local.agent.list().find((a) => a.name === lastUserMessage()?.agent) ?? local.agent.current()) + : local.agent.current() const color = agent ? local.agent.color(agent.name) : theme.border return { frames: createFrames({