Skip to content

fix(opencode): update spinner color logic#28032

Merged
rekram1-node merged 4 commits into
anomalyco:devfrom
OpeOginni:fix/agent-spinner-color
May 21, 2026
Merged

fix(opencode): update spinner color logic#28032
rekram1-node merged 4 commits into
anomalyco:devfrom
OpeOginni:fix/agent-spinner-color

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #28031
Closes #20430

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • Updated spinner color logic to be based on the current running prompt's agent (agent set in last user's message). It only falls back to the selected when that agent doesnt exist in the list.

How did you verify your code works?

Tested flow locally

Screenshots / recordings

Screen.Recording.2026-05-17.at.15.25.44.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node
Copy link
Copy Markdown
Collaborator

/review

Comment thread packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx Outdated
@OpeOginni
Copy link
Copy Markdown
Contributor Author

Resolved review issue, now if the lastUserMessage for some reason has an agent that is not valid in the primary list, we fall back tot he currently selected agent.

@rekram1-node rekram1-node merged commit 4b49606 into anomalyco:dev May 21, 2026
8 checks passed
MyNameIsGMLi pushed a commit to MyNameIsGMLi/opencode that referenced this pull request May 22, 2026
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
rustybret pushed a commit to rustybret/opencode that referenced this pull request May 22, 2026
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spinner Color Changes based on selected Agent not current run agent [FEATURE]: Prompt spinner should stay tied to the running agent

2 participants