Add AmbientSetupPhaseEnded variant to OrderedTerminalEventType (#17)

Add AmbientSetupPhaseEnded variant to OrderedTerminalEventType In [this PR](https://github.com/warpdotdev/warp/pull/11576), we make it so that users can kick off new cloud agent runs (specifically for local to cloud handoff) with no prompt. One issue that this presented was that we rely on the initial agent response coming in to indicate to cloud agent viewers that the setup phase is complete. Without this event, the user is just stuck in the "Environment setup..." phase forever, meaning the client blocks them from submitting prompts (and the UI is generally borked). To fix this, we need a prompt-agnostic event to indicate to viewers that environment setup is complete. The sharer emits this after setup is over (before sending the prompt for the start of the session, or not sending it if there's no prompt). Co-Authored-By: Oz <oz-agent@warp.dev> --------- Co-authored-by: Oz <oz-agent@warp.dev>

Harry Albert committed May 28, 2026 at 10:26 UTC c2226e8d9d2c87ac0bea4b01f98e0027355e1a5d
1 file changed +5
src/common/ordered_terminal_events.rs
+5
@@ -60,6 +60,9 @@ pub enum OrderedTerminalEventType {
60 AgentConversationReplayStarted,
61 /// Marks the end of historical agent conversation replay.
62 AgentConversationReplayEnded,
63 + /// Emitted by the sandboxed Oz AgentDriver when the cloud-mode setup phase is complete but no
64 + /// initial LLM turn will follow (e.g. empty-prompt local-to-cloud handoff with `--skip-initial-turn`).
65 + CloudModeSetupPhaseEnded,
66 }
67
68 /// Represents the size of a PTY. Mimics the winsize struct that
@@ -82,6 +85,7 @@ impl std::fmt::Debug for OrderedTerminalEventType {
85 Self::AgentResponseEvent { .. } => f.write_str("AgentResponseEvent"),
86 Self::AgentConversationReplayStarted => f.write_str("AgentConversationReplayStarted"),
87 Self::AgentConversationReplayEnded => f.write_str("AgentConversationReplayEnded"),
88 + Self::CloudModeSetupPhaseEnded => f.write_str("CloudModeSetupPhaseEnded"),
89 }
90 }
91 }
@@ -97,6 +101,7 @@ impl OrderedTerminalEventType {
101 | OrderedTerminalEventType::CommandExecutionFinished { .. }
102 | OrderedTerminalEventType::AgentConversationReplayStarted
103 | OrderedTerminalEventType::AgentConversationReplayEnded
104 + | OrderedTerminalEventType::CloudModeSetupPhaseEnded
105 | OrderedTerminalEventType::Resize { .. } => Byte::from_u64(0),
106 }
107 }