Enable handoff for orchestrating (or orchestrated) agents
Description
We specifically disabled handoff for orchestrated/orchestrating agents because there were some weird interaction patterns where the cloud agent wouldn't understand that it moved environments and would try to communicate with its old parent/children.
The fix for this is some conditional prompting on the server (added in this PR) which we include whenever the client indicates in its handoff request that the conversation it is handing off was an orchestration conversation.
This PR adds in that indication and also re-enables handoff for orchestration conversations.
Testing
- [x] I have manually tested my changes locally with
./script/run
Screenshots / Videos
https://www.loom.com/share/b0b91f0d71a44cc0ad4a490a327b20b5
Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
- #11768
👈 (View in Graphite) master
This stack of pull requests is managed by Graphite. Learn more about stacking.
@harryalbert
I'm starting a first review of this pull request.
You can view the conversation on Warp.
I completed the review and no human review was requested for this pull request.
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz