Update handoff surfaces to allow for empty prompts (and auto-handoff on click)
Description
Building off of the changes from the PR below this one in the stack, we now want to change all of the client handoff surfaces to allow for handing off without a prompt (and to take advantage of this instant handoff flow).
Specifically, we change it so that:
- clicking the handoff chip (when the prompt is empty) automatically kicks off handoff
- if the conversation is in progress when handing off, a "continue" prompt is auto-inserted so the agent continues its work stream in the cloud
- if the conversation has some snapshots to restore, a prompt is inserted to do snapshot restoration. Otherwise, we would skip snapshot restoration entirely (or do it without a user visible prompt)
- if neither of these are true, we just handoff with no prompt
- typing /handoff with no prompt also automatically kicks off handoff (with the same prompt semantics as above)
- We listen for the new
AmbientSetupPhaseEndedsession sharing message from this PR to exit the environment setup phase, removing our dependency on a prompt event to do this.
Testing
- [x] I have manually tested my changes locally with
./script/run
Screenshots / Videos
https://www.loom.com/share/e748b81a3e22418f9e9836acf56c06c1
Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
- #11576
👈 (View in Graphite) - #11573

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