You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] plan to build switch reminder fires every turn #31763
When the AI transitions from plan mode to build mode, the "Your operational mode has changed from plan to build" message is injected into every subsequent conversation turn, not just the first turn after the switch.
.some() checks the ENTIRE conversation history. Once a plan agent message exists anywhere, wasPlan is always true, causing the build-switch message to be injected every turn thereafter.
Steps to reproduce
Start a session in plan mode
Type a message
Switch to build mode (the build-switch message correctly appears)
Type another message in build mode
The build-switch message appears AGAIN (should only show on the first build turn)
Activity
github-actions commentedon Jun 10, 2026
This issue might be a duplicate of existing issues. Please check: