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
Fix AI blocks not appearing due to conversation existing in more than one pane (warpdotdev#11494)
## Description
Fix queries and output not showing up due to a conversation existing in
more than one pane. A conversation and its blocks should only be in one
pane at a time. This PR enforces this by notifying when a conversation
becomes active in a new terminal view, so that old terminal views can
delete the AI and command blocks for that conversation.
https://github.com/warpdotdev/warp/pull/10241/changes#diff-fe3dd831b48d66196f87f13cd7a57f0e3660444b8f4fd9f6a5718be5fa617e40
introduced `mark_active_conversation_id` to not transfer ownership.
warpdotdev#10327 uses it in the restoration
path. The first PR mentions it's short term, and @advait-m mentioned
these original fixes are probably no longer needed, but would like
review from you and @szgupta to verify. My understanding is that a
conversation must never be in more than one terminal view, even with
orchestration, so it should be correct to enforce this when setting
active conversation id.
I'm also unsure what should be the source of truth for where the
conversation lives. I'm using the ai history model for this, but it
seems like the agent view controller also has this info.
## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?
Manual testing is required for changes that can be manually tested, and
almost all changes can be manually tested. If your change can be
manually tested, please include screenshots or a screen recording that
show it working end to end.
You can run the app locally using `./script/run` - see WARP.md for more
details on how to get set up.
-->
- [x] I have manually tested my changes locally with `./script/run`
### Screenshots / Videos
<!-- Attach screenshots or a short video demonstrating the change, where
appropriate. Remove this section if it is not relevant to your PR. -->
https://www.loom.com/share/e0af242e4f2f42dcbe77b1753dca5177
## Changelog Entries for Stable
CHANGELOG-BUG-FIX: Fixed an issue that could prevent an AI query and
output from showing up
0 commit comments