muse_code_sdk/msp/method/lifecycle/session_start_switch_policy.rs
1// @generated from the MSP stable schema and protocol sources; do not edit by hand.
2
3use serde::Deserialize;
4use serde::Serialize;
5
6/// What happens to the `previousSessionId` predecessor's unfinished
7/// background work. **Closed**: the client selects one of the two policies
8/// the host applies.
9#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
10#[serde(rename_all = "camelCase")]
11pub enum SwitchPolicy {
12 /// Leave the predecessor's background work running; only its
13 /// persistent monitors end.
14 Keep,
15 /// Cancel the predecessor's unfinished background work, as the TUI's
16 /// `/new` and `/clear` do.
17 Kill,
18}