Active primary agent is swapping during use without my asking it to #7766

Open
opened 2026-02-16 18:08:10 -05:00 by yindo · 3 comments
Owner

Originally created by @rgasper on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I have multiple primary agents, and they're randomly swapping mid-conversation. This often happens with the very first interaction as well, meaning when I pick a primary agent, type a prompt, and hit enter, I almost always have to immediately interrupt and switch agents again.

Plugins

superpowers

OpenCode version

1.1.36

Steps to reproduce

  • have multiple primary agents
  • do anything?

Screenshot and/or share link

see movie. I opened up opencode, thentab-ed over to use planner agent. As soon as conversation is initiated, it switches agents.

This happens seemingly randomly mid-conversation as well.

https://github.com/user-attachments/assets/25cc143d-37cd-4fb8-9405-1c64cfe49b5c

Operating System

Mac OS 14.8 Sonoma

Terminal

Kitty

Originally created by @rgasper on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I have multiple primary agents, and they're randomly swapping mid-conversation. This often happens with the *very first* interaction as well, meaning when I pick a primary agent, type a prompt, and hit enter, I almost always have to immediately interrupt and switch agents again. ### Plugins superpowers ### OpenCode version 1.1.36 ### Steps to reproduce - have multiple primary agents - do anything? ### Screenshot and/or share link see movie. I opened up opencode, then`tab`-ed over to use planner agent. As soon as conversation is initiated, it switches agents. This happens seemingly randomly mid-conversation as well. https://github.com/user-attachments/assets/25cc143d-37cd-4fb8-9405-1c64cfe49b5c ### Operating System Mac OS 14.8 Sonoma ### Terminal Kitty
yindo added the opentuibug labels 2026-02-16 18:08:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7496: Question Tool Keyboard Conflict and Agent Switch Issue - Tab key triggering unexpected agent switches on first interaction
  • #7948: TUI: User selected agent/model is overwritten by server defaults when creating a new session - race condition causing agent selection to be overwritten
  • #7492: Primary agents lack identity awareness when user switches agents - can't determine which agent is active

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #7496: Question Tool Keyboard Conflict and Agent Switch Issue - Tab key triggering unexpected agent switches on first interaction - #7948: TUI: User selected agent/model is overwritten by server defaults when creating a new session - race condition causing agent selection to be overwritten - #7492: Primary agents lack identity awareness when user switches agents - can't determine which agent is active Feel free to ignore if none of these address your specific case.
Author
Owner

@rgasper commented on GitHub (Jan 27, 2026):

I think those issues are related, but I don't see mention of agent switching also happening mid conversation. it's possible my issue is happening due to the question tool, but I don't think so.

@rgasper commented on GitHub (Jan 27, 2026): I think those issues are related, but I don't see mention of agent switching also happening mid conversation. it's possible my issue is happening due to the question tool, but I don't think so.
Author
Owner

@pvyswiss commented on GitHub (Feb 2, 2026):

Same on latest desktop version macos 26.2 with Open Code Desktop Version 1.1.48 (1.1.48) Switching from Tab back to let's say one with Claude Sonet 4.5, changes during the session the agent, to agent / tab I was before.

@pvyswiss commented on GitHub (Feb 2, 2026): Same on latest desktop version macos 26.2 with Open Code Desktop Version 1.1.48 (1.1.48) Switching from Tab back to let's say one with Claude Sonet 4.5, changes during the session the agent, to agent / tab I was before.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7766