From 79acc2eaa2a5f9d23e2551fac4590522ac0ac2b0 Mon Sep 17 00:00:00 2001 From: OpeOginni Date: Sun, 17 May 2026 15:29:26 +0200 Subject: [PATCH] fix(opencode): update spinner color logic --- 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 c80daf9cff5f..7f6728e5ef20 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -1452,7 +1452,10 @@ export function Prompt(props: PromptProps) { }) const spinnerDef = createMemo(() => { - const agent = local.agent.current() + const running = status().type !== "idle" + const agent = running && props.sessionID + ? local.agent.list().find((a) => a.name === lastUserMessage()?.agent) + : local.agent.current() const color = agent ? local.agent.color(agent.name) : theme.border return { frames: createFrames({