Skip to content

Commit 4b49606

Browse files
fix(opencode): update spinner color logic (anomalyco#28032)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
1 parent e63dcd3 commit 4b49606

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,10 @@ export function Prompt(props: PromptProps) {
14381438
})
14391439

14401440
const spinnerDef = createMemo(() => {
1441-
const agent = local.agent.current()
1441+
const agent =
1442+
status().type !== "idle"
1443+
? (local.agent.list().find((a) => a.name === lastUserMessage()?.agent) ?? local.agent.current())
1444+
: local.agent.current()
14421445
const color = agent ? local.agent.color(agent.name) : theme.border
14431446
return {
14441447
frames: createFrames({

0 commit comments

Comments
 (0)