Commit 85ebd33
authored
Fix issue on dev with agent history menu not working. (#9656)
## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->
Fixes https://warpdev.slack.com/archives/C08KTPNQN65/p1777573039998779.
The issue was that there were two views subscribing the up arrow event
and both would handle it. Both the normal history menu and the cloud
mode-only history menu would emit events in rapid succession. We now
make sure that only one of the views ever fires off events, since only
one history menu should be active at a time.
## 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?
-->
Before, hitting the up arrow in the agent conversation view would cause
the buggy behavior Roland described: the first query would get inserted
into the buffer and the history menu would appear to never open. Now, it
WAI.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode1 parent f61ef1d commit 85ebd33
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2631 | 2631 | | |
2632 | 2632 | | |
2633 | 2633 | | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
2634 | 2637 | | |
2635 | 2638 | | |
2636 | 2639 | | |
| |||
2655 | 2658 | | |
2656 | 2659 | | |
2657 | 2660 | | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
2658 | 2664 | | |
2659 | 2665 | | |
2660 | 2666 | | |
| |||
0 commit comments